We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80dfeb commit f3750c7Copy full SHA for f3750c7
src/cs50/cs50.py
@@ -15,8 +15,11 @@
15
# Configure default logging handler and formatter
16
logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG)
17
18
-# Patch formatException
19
-logging.root.handlers[0].formatter.formatException = lambda exc_info: _formatException(*exc_info)
+try:
+ # Patch formatException
20
+ logging.root.handlers[0].formatter.formatException = lambda exc_info: _formatException(*exc_info)
21
+except IndexError:
22
+ pass
23
24
25
class _flushfile():
0 commit comments