summaryrefslogtreecommitdiff
path: root/doc/data/messages/l/logging-not-lazy/bad.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/l/logging-not-lazy/bad.py')
-rw-r--r--doc/data/messages/l/logging-not-lazy/bad.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/data/messages/l/logging-not-lazy/bad.py b/doc/data/messages/l/logging-not-lazy/bad.py
new file mode 100644
index 000000000..be6b98cb6
--- /dev/null
+++ b/doc/data/messages/l/logging-not-lazy/bad.py
@@ -0,0 +1,7 @@
+import logging
+
+try:
+ function()
+except Exception as e:
+ logging.error('Error occured: %s' % e) # [logging-not-lazy]
+ raise