Skip to content

Commit 98c89a3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c780001 commit 98c89a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)