somefixes

This commit is contained in:
Untone 2023-10-11 22:31:44 +03:00
parent 05967c1ce0
commit 8cac67986c

View File

@ -47,7 +47,7 @@ async def get_network(author_id, limit=50, offset=0):
if more_amount > 0: if more_amount > 0:
followers = get_followers(author_id, more_amount) followers = get_followers(author_id, more_amount)
except Exception as e: except Exception as e:
pass print(e)
return followings + followers return followings + followers
@ -67,6 +67,6 @@ async def get_followers(author_id, amount):
return False, None return False, None
r = response.json() r = response.json()
followers = r.get("data", {}).get("authorFollowers", []) followers = r.get("data", {}).get("authorFollowers", [])
except Exception: except Exception as e:
followers = [] followers = []
return followers return followers