Skip to content

Commit cc51c07

Browse files
author
Mark Gibbs
committed
Added error message when DjangoDash app not found
1 parent bb3208a commit cc51c07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_plotly_dash/dash_wrapper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def get_local_stateless_by_name(name):
5656
'''
5757
name = slugify(name)
5858
# TODO wrap this in raising a 404 if not found
59-
return usable_apps[name]
59+
try:
60+
return usable_apps[name]
61+
except:
62+
raise KeyError("Unable to find stateless DjangoApp called %s"%name)
6063

6164
class Holder:
6265
'Helper class for holding configuration options'

0 commit comments

Comments
 (0)