[gimp] Bug 676871: GIMP reports false positive plugin crash after...
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 676871: GIMP reports false positive plugin crash after...
- Date: Tue, 29 May 2012 11:11:55 +0000 (UTC)
commit 2f10aee65df240d5da8e88bf54be6b1f5db878e4
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]