Skip to content

Commit 740e687

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5f835b3 commit 740e687

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web_programming/fetch_well_rx_price.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def fetch_pharmacy_and_price_list(drug_name: str, zip_code: str) -> list | None:
6767

6868
return pharmacy_price_list
6969

70-
except (httpx.HTTPError, ValueError):
70+
except httpx.HTTPError, ValueError:
7171
return None
7272

7373

web_programming/instagram_crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_json(self) -> dict:
5353
scripts = BeautifulSoup(html, "html.parser").find_all("script")
5454
try:
5555
return extract_user_profile(scripts[4])
56-
except (json.decoder.JSONDecodeError, KeyError):
56+
except json.decoder.JSONDecodeError, KeyError:
5757
return extract_user_profile(scripts[3])
5858

5959
def __repr__(self) -> str:

0 commit comments

Comments
 (0)