Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 26, 2023
1 parent ef2ac83 commit 1f2dd32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nbviewer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,10 @@ def default_endpoint(self):
default_host, default_port = url.hostname, url.port

if default_port < 1 or default_port > 65535:
self.log.error("Received invalid port number %d through JUPYTERHUB_SERVICE_URL. "
"Defaulting to 5000 instead.")
self.log.error(
"Received invalid port number %d through JUPYTERHUB_SERVICE_URL. "
"Defaulting to 5000 instead."
)
default_port = 5000
else:
default_host, default_port = "0.0.0.0", 5000
Expand Down

0 comments on commit 1f2dd32

Please sign in to comment.