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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index b759490c5..dc08b0494 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -1897,7 +1897,7 @@ def repr_tuple_names(names):
return "%s, ..., %s" % (", ".join(res[0:3]), res[-1])
-def has_compiled_ext():
+def has_compiled_ext(raise_=False):
try:
from sqlalchemy.cyextension import collections # noqa F401
from sqlalchemy.cyextension import immutabledict # noqa F401
@@ -1907,4 +1907,6 @@ def has_compiled_ext():
return True
except ImportError:
+ if raise_:
+ raise
return False