diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-17 18:17:00 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-17 18:17:00 +0100 |
commit | a5791ab125d167f1cd23ad7cb3cfd4fc9dbd852f (patch) | |
tree | 8e96e7e0c741f1295b50d8f1d476f5d783f04367 | |
parent | 28dd0b1cb9e3ae1007b765addc8a27ae68f314b9 (diff) | |
download | qutebrowser-no-pypeg.tar.gz qutebrowser-no-pypeg.zip |
rfc6266: Work around another stdlib bugno-pypeg
-rw-r--r-- | qutebrowser/browser/webkit/http.py | 3 |
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) |