Imported 2.743

No reason for CPC update specified.
CloudBuilder 3 years ago
parent 9e7fccf5de
commit 330246233d

6
debian/changelog vendored

@ -1,8 +1,8 @@
livecd-rootfs (2.742+1) jammy; urgency=medium
livecd-rootfs (2.743) jammy; urgency=medium
* Aadd jammy
* magic-proxy: fix exception handling for URLError. LP: #1946520
-- Thomas Bechtold <thomas.bechtold@canonical.com> Mon, 18 Oct 2021 14:06:31 +0200
-- Thomas Bechtold <thomas.bechtold@canonical.com> Mon, 25 Oct 2021 12:22:16 +0200
livecd-rootfs (2.742) impish; urgency=medium

@ -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):

Loading…
Cancel
Save