Handle bad JSON data being returned from the federation API. (#9070)

This commit is contained in:
Patrick Cloke 2021-01-12 11:07:01 -05:00 committed by GitHub
parent 0f8945e166
commit 723b19748a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -560,4 +560,4 @@ class FederationClientTests(HomeserverTestCase):
self.pump()
f = self.failureResultOf(test_d)
self.assertIsInstance(f.value, ValueError)
self.assertIsInstance(f.value, RequestSendFailed)