[pkg-x2go-devel] Bug#780125: expression flaws in two Python exceptions
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Mon Mar 9 14:46:10 UTC 2015
Package: python-x2go
Severity: important
Version: 0.5.0.2-2
Patch file
0001_catch-connection-exception-during-session-startup.patch
introduces two Python exception flaws.
I fixed them later upstream, but only now remember to provide them for
the Debian package of Python X2Go, as well.
Mike
---
a/debian/patches/0001_catch-connection-exception-during-session-startup.patch
+++
b/debian/patches/0001_catch-connection-exception-during-session-startup.patch
@@ -17,7 +17,7 @@ index 22760e4..b0e1d84 100644
- self.has_terminal_session() and
self.terminal_session.run_command(env=self.session_environment)
+ try:
+ self.has_terminal_session() and
self.terminal_session.run_command(env=self.session_environment)
-+ except x2go_exceptions.X2GoControlSessionException:
++ except x2go_exceptions.X2GoControlSessionException, e:
+ self.logger('%s' % str(e),
loglevel=log.loglevel_ERROR)
+ self.HOOK_on_control_session_death()
+ self._X2GoSession__disconnect()
@@ -32,7 +32,7 @@ index 22760e4..b0e1d84 100644
-
self.terminal_session.run_command(env=self.session_environment)
+ try:
+
self.terminal_session.run_command(env=self.session_environment)
-+ except x2go_exceptions.X2GoControlSessionException:
++ except x2go_exceptions.X2GoControlSessionException, e:
+ self.logger('%s' % str(e), loglevel=log.loglevel_ERROR)
+ self.HOOK_on_control_session_death()
+ self._X2GoSession__disconnect()
--
DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/pkg-x2go-devel/attachments/20150309/a4eb383f/attachment.sig>
More information about the Pkg-x2go-devel
mailing list