mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
6bf78d35c4
commit
e3df836d3b
|
@ -114,7 +114,8 @@ def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
|
|||
"""Returns the avatar url for the person
|
||||
"""
|
||||
personJson = getPersonFromCache(baseDir,personUrl,personCache)
|
||||
if personJson:
|
||||
if not personJson:
|
||||
return None
|
||||
# get from locally stored image
|
||||
actorStr=personJson['id'].replace('/','-')
|
||||
avatarImagePath=baseDir+'/cache/avatars/'+actorStr
|
||||
|
|
Loading…
Reference in New Issue