add exception processing in views.py