minor fix

This commit is contained in:
Your Name 2022-04-01 05:25:29 -04:00
parent b2af3e6cbb
commit 71042a608c
2 changed files with 2 additions and 1 deletions

View file

@ -141,7 +141,7 @@ def get_site_id(username, user_site, target_site, token):
}
response = get(url, params=payload, headers=headers)
data = response.json()
if not data['accounts']:
if 'accounts' not in data:
return None
elif len(data['accounts']) == 0: # target site may return empty if no cache of this user
return None

View file

@ -16,3 +16,4 @@ setproctitle
tqdm
opencc
dnspython
typesense