Skip to content

Commit b1ff1fa

Browse files
authored
Merge pull request #19 from wadevries/dotted-app-import
Fix ImportError when an INSTALLED_APP is a dotted path to an AppConfig
2 parents b38c323 + 07aecfb commit b1ff1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crudbuilder/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def import_crud(app):
165165

166166
try:
167167
app_path = import_module(app).__path__
168-
except AttributeError:
168+
except (AttributeError, ImportError):
169169
return None
170170

171171
try:

0 commit comments

Comments
 (0)