[pybliographer] Fix handling of exit and quit in command line
- From: Zoltan Kota <zkota src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer] Fix handling of exit and quit in command line
- Date: Wed, 19 Nov 2014 08:29:04 +0000 (UTC)
commit 6f8b572b4df98516e47d9446127c70423c11ef67
Author: Zoltan Kota <zoltank gmail com>
Date: Wed Nov 19 09:28:24 2014 +0100
Fix handling of exit and quit in command line
pybliographer.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pybliographer.py b/pybliographer.py
index 08b46dd..c37ca50 100644
--- a/pybliographer.py
+++ b/pybliographer.py
@@ -236,7 +236,9 @@ while not finished:
full_line = ""
prompt = ">> "
inner = 0
-
+ except SystemExit:
+ finished = 1
+
except:
etype, value, tb = sys.exc_info ()
traceback.print_exception (etype, value, tb)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]