summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qutebrowser/browser/webkit/http.py3
1 files changed, 3 insertions, 0 deletions
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)