mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 23:42:59 +00:00
fix _hub_prefix_changed signature
wasn't update for new traitlets API c/o @Milly
This commit is contained in:
@@ -354,7 +354,8 @@ class JupyterHub(Application):
|
|||||||
return url_path_join(self.base_url, '/hub/')
|
return url_path_join(self.base_url, '/hub/')
|
||||||
|
|
||||||
@observe('hub_prefix')
|
@observe('hub_prefix')
|
||||||
def _hub_prefix_changed(self, name, old, new):
|
def _hub_prefix_changed(self, change):
|
||||||
|
new = change['new']
|
||||||
if new == '/':
|
if new == '/':
|
||||||
raise TraitError("'/' is not a valid hub prefix")
|
raise TraitError("'/' is not a valid hub prefix")
|
||||||
if not new.startswith(self.base_url):
|
if not new.startswith(self.base_url):
|
||||||
|
Reference in New Issue
Block a user