Skip to content

Commit d83aa80

Browse files
except ValueError instead of a RuntimeError
1 parent e3d7b93 commit d83aa80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

climada/util/test/test_finance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ def test_download_wb_data(self):
151151

152152
# Check errors raised
153153
with self.assertRaisesRegex(
154-
RuntimeError,
154+
ValueError,
155155
"Did you use the correct country code",
156156
):
157157
download_world_bank_indicator("Spain", "NY.GDP.MKTP.CD")
158158
with self.assertRaisesRegex(
159-
RuntimeError,
159+
ValueError,
160160
"Did you use the correct country code",
161161
):
162162
download_world_bank_indicator("ESP", "BogusIndicator")

0 commit comments

Comments
 (0)