[X2Go-Commits] [python-x2go] 01/07: x2go/session.py: Don't fail in set_master_session() if the client instance lacks a session profile config.

git-admin at x2go.org git-admin at x2go.org
Tue Sep 18 18:45:36 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit b779a026bae82cd28d5edb94ee61d0f7173408ad
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Sep 18 12:38:39 2018 +0000

    x2go/session.py: Don't fail in set_master_session() if the client instance lacks a session profile config.
---
 x2go/session.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/x2go/session.py b/x2go/session.py
index 99cafd9..7a978ad 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -687,8 +687,12 @@ class X2GoSession(object):
 
         # retrieve an up-to-date list of sharable local folders from the client instance
         if self.client_instance:
-            _exports = self.client_instance.get_profile_config(self.profile_name, 'export')
-            self.share_local_folders = [ sf for sf in list(_exports.keys()) if _exports[sf] ]
+            try:
+                _exports = self.client_instance.get_profile_config(self.profile_name, 'export')
+                self.share_local_folders = [ sf for sf in list(_exports.keys()) if _exports[sf] ]
+            except x2go_exceptions.X2GoProfileException:
+                # not all client instances may necessarily have a sesion profile config...
+                pass
 
         i = 0
         while i < max_wait:

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list