mirror of https://gitlab.com/bashrc2/epicyon
Check that id exists
parent
0011f1a40b
commit
c4093b35ed
|
@ -543,6 +543,8 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {},
|
|||
return None
|
||||
|
||||
# get from locally stored image
|
||||
if not personJson.get('id'):
|
||||
return None
|
||||
actorStr = personJson['id'].replace('/', '-')
|
||||
avatarImagePath = baseDir + '/cache/avatars/' + actorStr
|
||||
|
||||
|
|
Loading…
Reference in New Issue