lw_prototype: image download error handling
Add error handling to catch issues when downloading images from a URL and saving them in temporary directory.
Bug: T358676
How to register an account on GitLab. To prevent spam, new accounts are locked until approved by an admin or the approver bot. You can also file an unlock request to expedite access.
Support: mw:GitLab, how to host a project on GitLab, #wikimedia-gitlab on libera.chat, #GitLab on Phabricator.
Add error handling to catch issues when downloading images from a URL and saving them in temporary directory.
Bug: T358676