Skip to content

Commit db5ef0c

Browse files
committed
fixed import of private symbol
1 parent adad40e commit db5ef0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cs50/flask.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from os import getenv
55
from pkg_resources import get_distribution
66

7-
from .cs50 import formatException
7+
from .cs50 import _formatException
88

99
# Try to monkey-patch Flask, if installed
1010
try:
@@ -18,7 +18,7 @@
1818
# https://docs.python.org/3/library/logging.html#logging.Formatter.formatException
1919
try:
2020
import flask.logging
21-
flask.logging.default_handler.formatter.formatException = lambda exc_info: formatException(*exc_info)
21+
flask.logging.default_handler.formatter.formatException = lambda exc_info: _formatException(*exc_info)
2222
except Exception:
2323
pass
2424

0 commit comments

Comments
 (0)