Update views.py

Added try/except block for sign_out function.