summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/langhelpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/util/langhelpers.py')
-rw-r--r--lib/sqlalchemy/util/langhelpers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index 76f85f605..75c6e7b46 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -490,6 +490,8 @@ def generic_repr(obj, additional_kw=(), to_inspect=None, omit_kwarg=()):
val = getattr(obj, arg, missing)
if val is not missing and val != defval:
output.append('%s=%r' % (arg, val))
+ except (SystemExit, KeyboardInterrupt):
+ raise
except:
pass
@@ -499,6 +501,8 @@ def generic_repr(obj, additional_kw=(), to_inspect=None, omit_kwarg=()):
val = getattr(obj, arg, missing)
if val is not missing and val != defval:
output.append('%s=%r' % (arg, val))
+ except (SystemExit, KeyboardInterrupt):
+ raise
except:
pass
@@ -1185,6 +1189,8 @@ def warn_exception(func, *args, **kwargs):
"""
try:
return func(*args, **kwargs)
+ except (SystemExit, KeyboardInterrupt):
+ raise
except:
warn("%s('%s') ignored" % sys.exc_info()[0:2])