The branch, master has been updated via b616291e7f313c2426d7dcc3000c4b0d52cbca25 (commit) from aaff52443b889ef8a0f1b92b384a13cca29f0688 (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 ----------------------------------------------------------------- commit b616291e7f313c2426d7dcc3000c4b0d52cbca25 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Wed Aug 15 16:10:35 2012 +0200 Avoid Python exception: UnboundLocalError: local variable 'thisPyHocaGUI' referenced before assignment ----------------------------------------------------------------------- Summary of changes: debian/changelog | 2 ++ pyhoca-gui | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) The diff of changes is: diff --git a/debian/changelog b/debian/changelog index cb05f07..43843dc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ pyhoca-gui (0.2.0.4-0~x2go1) UNRELEASED; urgency=low * New upstream version (0.2.0.4): - Add namespace pyhoca to setup.py. + - Avoid Python exception: UnboundLocalError: local variable + 'thisPyHocaGUI' referenced before assignment * Update packaging files from Debian package. -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 15 Aug 2012 15:17:16 +0200 diff --git a/pyhoca-gui b/pyhoca-gui index 1c387d4..0486314 100755 --- a/pyhoca-gui +++ b/pyhoca-gui @@ -363,11 +363,13 @@ def main(): thisPyHocaGUI = PyHocaGUI(args, logger, liblogger, appname=PROG_NAME, version=VERSION) thisPyHocaGUI.MainLoop() except KeyboardInterrupt: - thisPyHocaGUI.WakeUpIdle() - thisPyHocaGUI.ExitMainLoop() + if thisPyHocaGUI is not None: + thisPyHocaGUI.WakeUpIdle() + thisPyHocaGUI.ExitMainLoop() except SystemExit: - thisPyHocaGUI.WakeUpIdle() - thisPyHocaGUI.ExitMainLoop() + if thisPyHocaGUI is not None: + thisPyHocaGUI.WakeUpIdle() + thisPyHocaGUI.ExitMainLoop() if __name__ == '__main__': main() 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)).