mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-30 21:31:32 +00:00
A urllib.error.URLError.reason variable can either be a string or another Exception[0]. In case it's another exception, the current code fails because the exception is passed into send_error() which tries call html.escape() on the Exception. That fails because the Exception is not a string. Converting the Exception to a string fixes this. This fixes: AttributeError: 'TimeoutError' object has no attribute 'replace' [0] https://docs.python.org/3/library/urllib.error.html#urllib.error.URLError.reason
Description
Languages
Shell
87.1%
Python
10.9%
Perl
2%