mirror of https://gitlab.com/bashrc2/epicyon
Use cached link to avatar image
parent
1346d0c932
commit
40aaad1a98
|
@ -65,7 +65,7 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata
|
||||||
result.raw.decode_content = True
|
result.raw.decode_content = True
|
||||||
copyfileobj(result.raw, f)
|
copyfileobj(result.raw, f)
|
||||||
print('avatar image downloaded for '+actor)
|
print('avatar image downloaded for '+actor)
|
||||||
return avatarUrl
|
return avatarImageFilename.replace(baseDir+'/cache','')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Failed to download avatar image: '+str(avatarUrl))
|
print('Failed to download avatar image: '+str(avatarUrl))
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in New Issue