I’m having this error page in Django.
Exception Type: IndexError
Exception Value: list index out of range
Exception Location: /home/nirmal/try/portfolio/views.py in vimeo_authorize, line 52
What I need is I just want to except this error in my views. I tried like this:
try:
.........
except IndexError:
.........
But it is not working. Could anyone give me the correct code?
Thanks!
That code is correct. You’re putting it in the wrong place.