File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -558,6 +558,15 @@ def dispatch(self):
558
558
return self .callback_map [target_id ]['callback' ](* args )
559
559
560
560
def _setup_server (self ):
561
+ # Make sure `layout` is set before running the server
562
+ value = getattr (self , 'layout' )
563
+ if value is None :
564
+ raise exceptions .NoLayoutException (
565
+ ''
566
+ 'The layout was `None` '
567
+ 'at the time that `run_server` was called. '
568
+ 'Make sure to set the `layout` attribute of your application '
569
+ 'before running the server.' )
561
570
self ._generate_scripts_html ()
562
571
self ._generate_css_dist_html ()
563
572
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ class DashException(Exception):
2
2
pass
3
3
4
4
5
+ class NoLayoutException (DashException ):
6
+ pass
7
+
8
+
5
9
class CallbackException (DashException ):
6
10
pass
7
11
Original file line number Diff line number Diff line change 12
12
plotly>=2.0.8
13
13
requests[security]
14
14
flake8
15
- pylint
15
+ pylint==1.9.2
You can’t perform that action at this time.
0 commit comments