[pybliographer] Fix handling of exit and quit in command line



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]