[X2Go-Commits] pyhoca-gui.git - twofactorauth (branch) updated: 0.1.0.10-186-g8a1d390

X2Go dev team git-admin at x2go.org
Sat Sep 14 15:56:00 CEST 2013


The branch, twofactorauth has been updated
       via  8a1d390676b43170edcf0146c1f20488393624ff (commit)
      from  6f8c10514fb270fe443d13e6c82db8295ba05429 (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:
 pyhoca/wxgui/frontend.py |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

The diff of changes is:
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index 16ff51c..3d470cc 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -623,10 +623,13 @@ class PyHocaGUI(wx.App, x2go.X2goClient):
     def OnPubAppExecution(self, evt):
         self.current_profile_name = self._eventid_profilenames_map[evt.GetId()]
         _session_name = self._eventid_sessionnames_map[evt.GetId()]
-        _exec = self._eventid_pubapp_execmap[self.current_profile_name][evt.GetId()]
-        _s = self.get_session_of_session_name(_session_name, return_object=True)
-        if _s is not None and _s.is_alive():
-            _s._X2goSession__exec_published_application(exec_name=_exec)
+        try:
+            _exec = self._eventid_pubapp_execmap[self.current_profile_name][evt.GetId()]
+            _s = self.get_session_of_session_name(_session_name, return_object=True)
+            if _s is not None and _s.is_alive():
+                _s._X2goSession__exec_published_application(exec_name=_exec)
+        except KeyError:
+            pass
 
     def _disable_session_name(self, profile_name, session_name):
         if profile_name not in self._temp_disabled_session_names.keys():


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

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 "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list