Imported 2.664.35

No reason for CPC update specified.
This commit is contained in:
CloudBuilder 2021-12-01 23:18:15 +00:00
parent fd36402dbe
commit bfa1263b8e
2 changed files with 11 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.664.35) focal; urgency=medium
[ Thomas Bechtold ]
* magic-proxy: fix exception handling for URLError (LP: #1946520)
-- Brian Murray <brian@ubuntu.com> Thu, 18 Nov 2021 15:42:45 -0800
livecd-rootfs (2.664.34) focal; urgency=medium
* Add the capability to build an ISO image for the Intel IoT project.

View File

@ -883,8 +883,10 @@ class ProxyingHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
self.__send_response(e)
except urllib.error.URLError as e:
self.log_message(
"urlopen() failed for {} with {}".format(uri, e.reason))
self.send_error(501, e.reason)
"urlopen() failed for {} with {}".format(uri, str(e.reason)))
# URLError.reason can either be a string or another Exception
# So do convert it to a string before sending the error (LP: #1946520)
self.send_error(501, str(e.reason))
def __get_host_path(self):