Branch: refs/heads/master Author: Matthew Brush matt@geany.org Committer: Matthew Brush matt@geany.org Date: Wed, 07 Aug 2013 00:42:14 UTC Commit: 69765fd746c84a014b1c97c43a92c7e0f833c362 https://github.com/geany/geany-plugins/commit/69765fd746c84a014b1c97c43a92c7...
Log Message: ----------- GeanyPy: Prevent exit() in console from exiting Geany
TODO: see about setting sys.excepthook to trap unhandled exceptions in actual plugin code and rather than dumping to debug messages (or exiting, in the case of SystemExit exception), present a dialog showing a user-friendly message with option to see the details/traceback.
Modified Paths: -------------- geanypy/geany/console.py
Modified: geanypy/geany/console.py 5 files changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -517,8 +517,9 @@ def do_raw_input(self, text): def do_command(self, code): try: eval(code, self.locals) - except SystemExit: - raise +# In GeanyPy console, we don't want to exit the process on SystemExit +# except SystemExit: +# raise except: self.showtraceback()
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org