[X2Go-Commits] [x2goclient] 51/94: only raising error if session_profile arg was specified

git-admin at x2go.org git-admin at x2go.org
Fri Dec 15 21:04:43 CET 2023


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

x2go pushed a commit to annotated tag 0.1.4.0
in repository x2goclient.

commit 0b96e036d66981b508e49c9a1750bf4c7b1504fb
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue May 17 09:48:36 2011 +0200

    only raising error if session_profile arg was specified
---
 pyhoca/cli/frontend.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 0346cf8b..3b1a964f 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -196,7 +196,7 @@ class PyHocaCLI(x2go.X2goClient):
         x2go.X2goClient.__init__(self, logger=liblogger)
 
         _profiles = self._X2goClient__get_profiles()
-        if not _profiles.has_profile(self.args.session_profile):
+        if self.args.session_profile and not _profiles.has_profile(self.args.session_profile):
             self._runtime_error('no such session profile of name: %s.' % (self.args.session_profile), exitcode=31)
 
         if self.args.session_profile:

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


More information about the x2go-commits mailing list