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 9914dc4fd27805cae63ea1d6ccaf64ece46cb69b Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Tue May 17 09:47:51 2011 +0200 raising a runtime error, if session profile name does not exist --- pyhoca/cli/frontend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py index 111874cd..0346cf8b 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -196,7 +196,10 @@ class PyHocaCLI(x2go.X2goClient): x2go.X2goClient.__init__(self, logger=liblogger) _profiles = self._X2goClient__get_profiles() - if self.args.session_profile and _profiles.has_profile(self.args.session_profile): + if 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: # override session profile options by option values from the arg parser kwargs={} -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git