Skip to content

Commit c30b593

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fc55025 commit c30b593

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

batchspawner/singleuser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def main(argv=None):
4040
url = urlparse(os.environ.get("JUPYTERHUB_SERVICE_URL", ""))
4141
# Updated URL. We are effectively passing the port arg via env var
4242
if url.hostname:
43-
os.environ["JUPYTERHUB_SERVICE_URL"] = f"{url.scheme}://{url.hostname}:{port}{url.path}"
43+
os.environ[
44+
"JUPYTERHUB_SERVICE_URL"
45+
] = f"{url.scheme}://{url.hostname}:{port}{url.path}"
4446

4547
cmd_path = which(sys.argv[1])
4648
sys.argv = sys.argv[1:]

0 commit comments

Comments
 (0)