This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author CristiFati
Recipients CristiFati, alanmcintyre, serhiy.storchaka, twouters
Date 2019-03-10.11:27:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552217269.0.0.904590293121.issue36247@roundup.psfhosted.org>
In-reply-to
Content
Hm, I assumed that a bad password, will raise an exception (at some point). but, if it doesn't, the destination file will be overwritten (with the messed up content), which also happens now (so, no behavior change).

This is trying to make wrong passwords behavior (when an exception is raised) consistent.

What I can think of is that when some bytes were already extracted when the exception occurs, overwrite the existing file (if any), so at the end the faulty content will be kept (although I don't know haw this could help anyone), but in any case a 0 lengthed file is not a good option (from my PoV).

Of course specifying another dir is an option, but I only see it as a workaround.
History
Date User Action Args
2019-03-10 11:27:49CristiFatisetrecipients: + CristiFati, twouters, alanmcintyre, serhiy.storchaka
2019-03-10 11:27:49CristiFatisetmessageid: <1552217269.0.0.904590293121.issue36247@roundup.psfhosted.org>
2019-03-10 11:27:48CristiFatilinkissue36247 messages
2019-03-10 11:27:48CristiFaticreate