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 3f70782 commit 9699ec1Copy full SHA for 9699ec1
doc/data/messages/l/logging-too-few-args/bad.py
@@ -0,0 +1,7 @@
1
+import logging
2
+
3
+try:
4
+ function()
5
+except Exception as e:
6
+ logging.error('%s error occured: %s', e) # [logging-too-few-args]
7
+ raise
doc/data/messages/l/logging-too-few-args/good.py
+ logging.error('%s error occured: %s', type(e), e)
0 commit comments