Commit cc0727e4 authored by Martin Lehoux's avatar Martin Lehoux

handle missing photo

parent 4da1f83c
......@@ -17,7 +17,7 @@ def find_or_create_user(access_token, access_token_payload):
first_name=data['firstName'],
last_name=data['lastName'],
promo=data['promo'],
photoPath="https://auth.viarezo.fr/media/"+data['photo']
photoPath="https://auth.viarezo.fr/media/"+str(data['photo'])
)
user.save()
if "ViaRézo(wo)man" in data['roles']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment