Skip to content

Commit a93ac28

Browse files
Fix exception namespace
1 parent 66aeb14 commit a93ac28

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/usethis/_integrations/bitbucket/test_bitbucket_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_matches_schema_store(self):
2727
online_schema_json = requests.get(
2828
"https://api.bitbucket.org/schemas/pipelines-configuration"
2929
).text
30-
except ConnectionError as err:
30+
except requests.exceptions.ConnectionError as err:
3131
if os.getenv("CI"):
3232
pytest.skip(
3333
"Failed to fetch JSON schema (connection issues); skipping test"

tests/usethis/_integrations/pre_commit/test_pre_commit_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_matches_schema_store(self):
2929
online_schema_json = requests.get(
3030
"https://json.schemastore.org/pre-commit-config.json"
3131
).text
32-
except ConnectionError as err:
32+
except requests.exceptions.ConnectionError as err:
3333
if os.getenv("CI"):
3434
pytest.skip(
3535
"Failed to fetch JSON schema (connection issues); skipping test"

0 commit comments

Comments
 (0)