mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Removed unnecesary check
This commit is contained in:
@@ -177,12 +177,11 @@ class SpawnHandler(BaseHandler):
|
|||||||
# otherwise it may cause a redirect loop
|
# otherwise it may cause a redirect loop
|
||||||
if f.done() and f.exception():
|
if f.done() and f.exception():
|
||||||
exc = f.exception()
|
exc = f.exception()
|
||||||
if exc:
|
raise web.HTTPError(
|
||||||
raise web.HTTPError(
|
500,
|
||||||
500,
|
"Error in Authenticator.pre_spawn_start: %s %s"
|
||||||
"Error in Authenticator.pre_spawn_start: %s %s"
|
% (type(exc).__name__, str(exc)),
|
||||||
% (type(exc).__name__, str(exc)),
|
)
|
||||||
)
|
|
||||||
self.redirect(pending_url)
|
self.redirect(pending_url)
|
||||||
|
|
||||||
@web.authenticated
|
@web.authenticated
|
||||||
|
Reference in New Issue
Block a user