Skip to content

Commit af6ecc9

Browse files
committed
format + lint
1 parent 7d31945 commit af6ecc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scrapers/cim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def get_sections() -> Iterable[Tag]:
4343
try:
4444
with urlopen(CIM_URL, timeout=5) as cim_req:
4545
soup = BeautifulSoup(cim_req.read().decode("utf-8"), "html.parser")
46-
except Exception as e:
47-
print(f"error in get_sections: {e}")
48-
raise e
46+
except (URLError, socket.timeout) as error:
47+
print(f"error in get_sections: {error}")
48+
raise error
4949

5050
return (
5151
item

0 commit comments

Comments
 (0)