summaryrefslogtreecommitdiff
path: root/doc/data/messages/l/logging-too-many-args/good.py
blob: 4812aec01a7252c754405d3c853998d312a667c3 (plain)
1
2
3
4
5
6
7
import logging

try:
    function()
except Exception as e:
    logging.error("%s error occurred: %s", type(e), e)
    raise