Skip to content

Commit 370f6c3

Browse files
committed
fixed following count
1 parent 4972b19 commit 370f6c3

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

scratchattach/site/user.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,12 @@ def follower_count(self):
243243

244244
def following_count(self):
245245
# following count
246-
text = requests.get(
247-
f"https://scratch.mit.edu/users/{self.username}/following/",
248-
headers = self._headers
249-
).text
250-
return commons.webscrape_count(text, "Following (", ")")
246+
with requests.no_error_handling():
247+
text = requests.get(
248+
f"https://scratch.mit.edu/users/{self.username}/following/",
249+
headers = self._headers
250+
).text
251+
return commons.webscrape_count(text, "Following (", ")")
251252

252253
def followers(self, *, limit=40, offset=0):
253254
"""

0 commit comments

Comments
 (0)