Skip to content

Commit 7571dbd

Browse files
committed
moved import to try
1 parent fca53b9 commit 7571dbd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cs50/flask.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import flask.logging
2-
31
from distutils.version import StrictVersion
42
from pkg_resources import get_distribution
53

@@ -11,6 +9,7 @@
119
# Only patch >= 1.0
1210
version = StrictVersion(get_distribution("flask").version)
1311
assert version >= StrictVersion("1.0")
12+
import flask.logging
1413

1514
# Reformat logger's exceptions
1615
# http://flask.pocoo.org/docs/1.0/logging/

0 commit comments

Comments
 (0)