Skip to content

Commit c869062

Browse files
committed
Use HTTPError and not Exception
1 parent 1a808f0 commit c869062

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/posit/connect/test_jobs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
import responses
3+
from requests.exceptions import HTTPError
34

45
from posit.connect.client import Client
56

@@ -61,7 +62,7 @@ def test_miss(self):
6162
c = Client("https://connect.example", "12345")
6263
content = c.content.get("f2f37341-e21d-3d80-c698-a935ad614066")
6364

64-
with pytest.raises(Exception):
65+
with pytest.raises(HTTPError):
6566
content.jobs.find("not-found")
6667

6768

0 commit comments

Comments
 (0)