fix _hub_prefix_changed signature

wasn't update for new traitlets API

c/o @Milly
This commit is contained in:
Min RK
2016-05-31 11:33:12 +02:00
parent 1514a2f2e2
commit 3cefc2951c

View File

@@ -354,7 +354,8 @@ class JupyterHub(Application):
return url_path_join(self.base_url, '/hub/')
@observe('hub_prefix')
def _hub_prefix_changed(self, name, old, new):
def _hub_prefix_changed(self, change):
new = change['new']
if new == '/':
raise TraitError("'/' is not a valid hub prefix")
if not new.startswith(self.base_url):