We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b77674 + c85cb1e commit 8be17feCopy full SHA for 8be17fe
1 file changed
applications/jupyterhub/src/harness_jupyter/harness_jupyter/jupyterhub.py
@@ -2,7 +2,7 @@
2
import urllib.parse
3
import asyncio
4
from functools import partial
5
-
+from tornado import web
6
from kubespawner.spawner import KubeSpawner
7
from jupyterhub.utils import exponential_backoff
8
@@ -29,8 +29,9 @@ def custom_options_form(spawner, abc):
29
return spawner._options_form_default()
30
31
32
-class PodSpawnException(Exception):
33
- pass
+class PodSpawnException(web.HTTPError):
+ def __init__(self, message, status_code=403):
34
+ super().__init__(status_code=status_code, log_message=message)
35
36
37
def harness_hub():
0 commit comments