summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
authorndparker <ndparker@users.noreply.github.com>2014-10-02 22:00:31 +0200
committerndparker <ndparker@users.noreply.github.com>2014-10-02 22:00:31 +0200
commit690532131d8ce8250c62f1d3e27405902df03e70 (patch)
tree69ef40646aa14519b539ae9d09a16229b7b3e20a /lib/sqlalchemy/sql/elements.py
parentce52dd9e3b71f2074d7821fe62803d4e0eefe512 (diff)
downloadsqlalchemy-pr/140.tar.gz
cleanup exception handling - use new exception hierarchy (since python 2.5)pr/140
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 8e18a22fe..4bc1683dd 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -3491,9 +3491,7 @@ def _string_or_unprintable(element):
else:
try:
return str(element)
- except (SystemExit, KeyboardInterrupt):
- raise
- except:
+ except Exception:
return "unprintable element %r" % element