minor fix
This commit is contained in:
parent
b2af3e6cbb
commit
71042a608c
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -16,3 +16,4 @@ setproctitle
|
|||
tqdm
|
||||
opencc
|
||||
dnspython
|
||||
typesense
|
||||
|
|
Loading…
Add table
Reference in a new issue