diff options
Diffstat (limited to 'MySQLdb/MySQLdb/cursors.py')
-rw-r--r-- | MySQLdb/MySQLdb/cursors.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py index 50614f9..ffe60c0 100644 --- a/MySQLdb/MySQLdb/cursors.py +++ b/MySQLdb/MySQLdb/cursors.py @@ -174,6 +174,8 @@ class BaseCursor(object): else: self.messages.append((TypeError, m)) self.errorhandler(self, TypeError, m) + except (SystemExit, KeyboardInterrupt): + raise except: exc, value, tb = sys.exc_info() del tb @@ -223,6 +225,8 @@ class BaseCursor(object): self.errorhandler(self, ProgrammingError, msg.args[0]) else: self.errorhandler(self, TypeError, msg) + except (SystemExit, KeyboardInterrupt): + raise except: exc, value, tb = sys.exc_info() del tb |