[X2Go-Commits] python-x2go.git - brokerclient (branch) updated: 0.1.1.4-234-ga27e513

X2Go dev team git-admin at x2go.org
Tue Jan 7 16:21:12 CET 2014


The branch, brokerclient has been updated
       via  a27e513e6be7af2726231a6b7e52ca8dc0872e44 (commit)
      from  18c58ed55e34f187de88f584635e5fe2758f5003 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 x2go/cache.py |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

The diff of changes is:
diff --git a/x2go/cache.py b/x2go/cache.py
index a67b347..5a2b2f9 100644
--- a/x2go/cache.py
+++ b/x2go/cache.py
@@ -152,10 +152,8 @@ class X2goListSessionsCache(object):
                 for session_name in self.x2go_listsessions_cache[profile_name]['sessions']:
                     self.x2go_listsessions_cache[profile_name]['mounts'].update(control_session.list_mounts(session_name))
         except x2go_exceptions.X2goControlSessionException, e:
-            try:
+            if profile_name in self.x2go_listsessions_cache.keys()
                 del self.x2go_listsessions_cache[profile_name]
-            except KeyError:
-                pass
             raise e
 
     def _update_desktops(self, profile_name, control_session):
@@ -169,10 +167,8 @@ class X2goListSessionsCache(object):
         try:
             self.x2go_listsessions_cache[profile_name]['desktops'] = control_session.list_desktops()
         except x2go_exceptions.X2goControlSessionException, e:
-            try:
+            if profile_name in self.x2go_listsessions_cache.keys()
                 del self.x2go_listsessions_cache[profile_name]
-            except KeyError:
-                pass
             raise e
 
     def _update_sessions(self, profile_name, control_session):
@@ -187,10 +183,8 @@ class X2goListSessionsCache(object):
             if control_session is not None:
                 self.x2go_listsessions_cache[profile_name]['sessions'] = control_session.list_sessions()
         except x2go_exceptions.X2goControlSessionException, e:
-            try:
+            if profile_name in self.x2go_listsessions_cache.keys()
                 del self.x2go_listsessions_cache[profile_name]
-            except KeyError:
-                pass
             raise e
 
     def list_sessions(self, session_uuid):


hooks/post-receive
-- 
python-x2go.git (Python X2Go Client API)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-x2go.git" (Python X2Go Client API).




More information about the x2go-commits mailing list