We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44c2481 commit bff1432Copy full SHA for bff1432
jupyter_server/prometheus/metrics.py
@@ -11,7 +11,7 @@
11
except ImportError:
12
notebook_version_info = None
13
14
-if not notebook_version_info >= (7,):
+if notebook_version_info is not None and notebook_version_info < (7,):
15
# Jupyter Notebook v6 also defined these metrics. Re-defining them results in a ValueError,
16
# so we simply re-export them if we are co-existing with the notebook v6 package.
17
# See https://github.com/jupyter/jupyter_server/issues/209
0 commit comments