diff --git a/tests/test_datareader.py b/tests/test_datareader.py index 29f6fb38b..e38f19624 100644 --- a/tests/test_datareader.py +++ b/tests/test_datareader.py @@ -1,4 +1,4 @@ -from requests.exceptions import ConnectionError, ReadTimeout +from requests.exceptions import ConnectionError, ReadTimeout, JSONDecodeError import pytest import logging import pandas as pd @@ -13,7 +13,7 @@ try: wb.get_indicators() WB_UNAVAILABLE = False -except (ReadTimeout, ConnectionError): +except (ReadTimeout, ConnectionError, JSONDecodeError): WB_UNAVAILABLE = True WB_REASON = "World Bank API unavailable"