Skip to content

Commit 23f7206

Browse files
authored
Aktualisieren von user.py
1 parent e378df5 commit 23f7206

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scratchattach/site/user.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,9 @@ def loves(self, *, limit=40, offset=0, get_full_project: bool = False) -> list[p
399399
# The index of the first project on page #n is just (n-1) * 40
400400
first_idx = (page - 1) * 40
401401

402-
page_content = requests.get(f"https://scratch.mit.edu/projects/all/{self.username}/loves/"
403-
f"?page={page}", headers=self._headers).content
402+
with requests.no_error_handling():
403+
page_content = requests.get(f"https://scratch.mit.edu/projects/all/{self.username}/loves/"
404+
f"?page={page}", headers=self._headers).content
404405

405406
soup = BeautifulSoup(
406407
page_content,

0 commit comments

Comments
 (0)