Skip to content

Commit

Permalink
fix minimum tornado error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Nov 16, 2020
1 parent da0fef5 commit e09ba05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
from jupyter_server.utils import secure_write, run_sync

# the minimum viable tornado version: needs to be kept in sync with setup.py
MIN_TORNADO = (6, 1)
MIN_TORNADO = (6, 1, 0)

try:
import tornado
assert tornado.version_info >= MIN_TORNADO
except (ImportError, AttributeError, AssertionError) as e: # pragma: no cover
raise ImportError(
_("The Jupyter Server requires tornado >=%s", ".".join(MIN_TORNADO))
_("The Jupyter Server requires tornado >=%s.%s.%s", *MIN_TORNADO)
) from e

from tornado import httpserver
Expand Down

0 comments on commit e09ba05

Please sign in to comment.