Met un titre pourri s'il trouve pas
This commit is contained in:
parent
3a7a3fb640
commit
c8f00f0a4c
1 changed files with 1 additions and 3 deletions
|
@ -56,9 +56,7 @@ def add_link(request, token):
|
||||||
q = parse_qs(response.content.decode('utf-8'))
|
q = parse_qs(response.content.decode('utf-8'))
|
||||||
title = q['title'][0]
|
title = q['title'][0]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print(yt_token)
|
title = "Je n'arrive pas à retrouver le titre :("
|
||||||
print(q)
|
|
||||||
return HttpResponse('Error')
|
|
||||||
p.last_update = timezone.now()
|
p.last_update = timezone.now()
|
||||||
p.save()
|
p.save()
|
||||||
link = Link()
|
link = Link()
|
||||||
|
|
Loading…
Reference in a new issue