flake8
This commit is contained in:
parent
76c1b3d807
commit
bae9a6f431
|
@ -699,7 +699,7 @@ def copy(msg: Message) -> Message:
|
|||
"""return a copy of message"""
|
||||
try:
|
||||
return deepcopy(msg)
|
||||
except:
|
||||
except Exception:
|
||||
LOG.warning("deepcopy fails, try string parsing")
|
||||
try:
|
||||
return email.message_from_string(msg.as_string())
|
||||
|
|
Loading…
Reference in New Issue