Message 337610 - Python tracker (original) (raw)
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.