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