[gimp/metadata-browser] Bug 676871: GIMP reports false positive plugin crash after...
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Bug 676871: GIMP reports false positive plugin crash after...
- Date: Thu, 13 Sep 2012 00:21:40 +0000 (UTC)
commit 76d8e39b0468b69c10f1308a32bad8e77f061e09
Author: Massimo Valentini <mvalentini src gnome org>
Date: Tue May 29 13:10:05 2012 +0200
Bug 676871: GIMP reports false positive plugin crash after...
entering "quit()" in Python Console.
plug-ins/pygimp/plug-ins/pyconsole.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/pyconsole.py b/plug-ins/pygimp/plug-ins/pyconsole.py
index 6aebdda..a85bae3 100644
--- a/plug-ins/pygimp/plug-ins/pyconsole.py
+++ b/plug-ins/pygimp/plug-ins/pyconsole.py
@@ -525,7 +525,10 @@ class _Console(_ReadLine, code.InteractiveInterpreter):
try:
eval(code, self.locals)
except SystemExit:
- raise
+ if self.quit_func:
+ self.quit_func()
+ else:
+ raise
except:
self.showtraceback()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]