Log rfc6266 UnicodeDecodeError to correct logger.
This commit is contained in:
parent
e696898c4a
commit
072210c47b
@ -50,7 +50,7 @@ def parse_content_disposition(reply):
|
||||
bytes(reply.rawHeader(content_disposition_header)))
|
||||
filename = content_disposition.filename()
|
||||
except UnicodeDecodeError:
|
||||
log.misc.exception("Error while decoding filename")
|
||||
log.rfc6266.exception("Error while decoding filename")
|
||||
else:
|
||||
is_inline = content_disposition.is_inline()
|
||||
# Then try to get filename from url
|
||||
|
Loading…
Reference in New Issue
Block a user