diff options
author | ndparker <ndparker@users.noreply.github.com> | 2014-10-02 22:00:31 +0200 |
---|---|---|
committer | ndparker <ndparker@users.noreply.github.com> | 2014-10-02 22:00:31 +0200 |
commit | 690532131d8ce8250c62f1d3e27405902df03e70 (patch) | |
tree | 69ef40646aa14519b539ae9d09a16229b7b3e20a /lib/sqlalchemy/engine/base.py | |
parent | ce52dd9e3b71f2074d7821fe62803d4e0eefe512 (diff) | |
download | sqlalchemy-pr/140.tar.gz |
cleanup exception handling - use new exception hierarchy (since python 2.5)pr/140
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index b3460c240..220679c12 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -1055,8 +1055,6 @@ class Connection(Connectable): """ try: cursor.close() - except (SystemExit, KeyboardInterrupt): - raise except Exception: # log the error through the connection pool's logger. self.engine.pool.logger.error( @@ -1135,8 +1133,6 @@ class Connection(Connectable): per_fn = fn(ctx) if per_fn is not None: ctx.chained_exception = newraise = per_fn - except (SystemExit, KeyboardInterrupt): - raise except Exception as _raised: # handler raises an exception - stop processing newraise = _raised |