We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aac964 commit 722c336Copy full SHA for 722c336
test/test_liveserver.py
@@ -534,7 +534,7 @@ def test_compression_br(self):
534
535
try:
536
json_dict = json.loads(f.content)
537
- except (ValueError):
+ except (ValueError, TypeError):
538
# Handle error from trying to load compressed data
539
json_dict = json.loads(b2s(brotli.decompress(f.content)))
540
@@ -678,7 +678,7 @@ def test_compression_zstd(self):
678
679
680
681
- except (ValueError, UnicodeDecodeError):
+ except (ValueError, UnicodeDecodeError, TypeError):
682
# ValueError - raised by loads on compressed content python2
683
# UnicodeDecodeError - raised by loads on compressed content
684
# python3
0 commit comments