From ebc64a0d193e510344c8478d57f0a9e6a09a0ab4 Mon Sep 17 00:00:00 2001 From: Wouter de Vries Date: Tue, 26 Jul 2016 20:56:33 +0200 Subject: [PATCH] Fix ImportError when an INSTALLED_APP is a dotted path to an AppConfig --- crudbuilder/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crudbuilder/helpers.py b/crudbuilder/helpers.py index 5b50dd3..c4dbd9f 100644 --- a/crudbuilder/helpers.py +++ b/crudbuilder/helpers.py @@ -165,7 +165,7 @@ def import_crud(app): try: app_path = import_module(app).__path__ - except AttributeError: + except (AttributeError, ImportError): return None try: