Skip to content

Commit f4a059b

Browse files
delsimGibbsConsulting
authored andcommitted
Make static finders handle case of missing settings gracefully (#113)
1 parent c9c4399 commit f4a059b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

django_plotly_dash/finders.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ def __init__(self):
5050

5151
self.ignore_patterns = ["*.py", "*.pyc",]
5252

53-
for component_name in settings.PLOTLY_COMPONENTS:
53+
try:
54+
components = settings.PLOTLY_COMPONENTS
55+
except:
56+
components = []
57+
58+
for component_name in components:
5459

5560
module = importlib.import_module(component_name)
5661
path_directory = os.path.dirname(module.__file__)

0 commit comments

Comments
 (0)