| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks good.
Optional suggestion: this could even be the very first check before the OSError, as it's arguably a more fundamental problem than changing the mode.
Sorry, something went wrong.
|
Ok, done. |
Sorry, something went wrong.
|
Thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Suggested in #5944 (comment)
The JPEG format does not support saving an image with zero width or height. This PR raises a ValueError for the situation, rather than the SystemError that is currently raised.