From a5791ab125d167f1cd23ad7cb3cfd4fc9dbd852f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 17 Jan 2021 18:17:00 +0100 Subject: rfc6266: Work around another stdlib bug --- qutebrowser/browser/webkit/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/browser/webkit/http.py b/qutebrowser/browser/webkit/http.py index 2eea2c8cf..0952810da 100644 --- a/qutebrowser/browser/webkit/http.py +++ b/qutebrowser/browser/webkit/http.py @@ -92,6 +92,9 @@ class ContentDisposition: # WORKAROUND for https://bugs.python.org/issue37491 # Fixed in Python 3.7.5 and 3.8.0. raise ContentDispositionError("Missing closing quote character") + except ValueError: # pragma: no cover + # WORKAROUND for https://bugs.python.org/issue42946 + raise ContentDispositionError("Non-ASCII digit") if parsed.defects: defects = list(parsed.defects) -- cgit v1.2.3-54-g00ecf