Skip to content

Commit

Permalink
fix #39 500 Internal Server Error in jupyter v1.0
Browse files Browse the repository at this point in the history
add missing template parameter to fix issue #39 500 Internal Server Error in jupyter v1.0
  • Loading branch information
zhuoqiang authored and oschuett committed Jul 25, 2019
1 parent 0decaa8 commit 2c83c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appmode/server_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def get(self, path):
}

# template parameters changed over time
if hasattr(orig_handler, "get_custom_frontend_exporters"):
get_cfw = orig_handler.get_custom_frontend_exporters
render_kwargs['get_custom_frontend_exporters'] = get_cfw
for parameter in ("get_custom_frontend_exporters", "get_frontend_exporters"):
if hasattr(orig_handler, parameter):
render_kwargs[parameter] = getattr(orig_handler, parameter)

# Ok let's roll ....
self.write(self.render_template('appmode.html', **render_kwargs))
Expand Down

0 comments on commit 2c83c3f

Please sign in to comment.