Check that id exists

main
Bob Mottram 2021-05-10 15:28:08 +01:00
parent 0011f1a40b
commit c4093b35ed
1 changed files with 2 additions and 0 deletions

View File

@ -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