From e0e6d1c9395bbb1671e846a936bbbd828e75eb04 Mon Sep 17 00:00:00 2001 From: Omar Ryhan Date: Tue, 3 Sep 2024 13:59:57 +0800 Subject: [PATCH] fix tests --- tests/refresh_all_apis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/refresh_all_apis.py b/tests/refresh_all_apis.py index 3b1b584..74446cc 100755 --- a/tests/refresh_all_apis.py +++ b/tests/refresh_all_apis.py @@ -35,7 +35,7 @@ async def refresh_disc_docs_json(): # Refresh discovery files in tests/data for google_api, (name, version) in zip(all_discovery_documents, all_apis): - if isinstance(google_api, HTTPError): + if isinstance(google_api, (HTTPError, ValueError)): e = google_api # filter out the errored api from the final_all_apis final_all_apis = [api for api in final_all_apis if api[0] != name]