[New-bugs-announce] [issue39359] zipfile: add missing "pwd: expected bytes, got str" exception message

Daniel Hillier report at bugs.python.org
Thu Jan 16 08:20:14 EST 2020


New submission from Daniel Hillier <daniel.hillier at gmail.com>:

Setting the ZipFile.pwd attribute directly skips the check to ensure the password is a bytes object and, if not, return a user friendly TypeError("pwd: expected bytes, got <type>") informing them of that.

----------
components: Library (Lib)
messages: 360118
nosy: dhillier
priority: normal
severity: normal
status: open
title: zipfile: add missing "pwd: expected bytes, got str" exception message
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39359>
_______________________________________


More information about the New-bugs-announce mailing list