Removed try catch from views.py to simplify things.