Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switched exception block to use as instead of comma. note: this will …

…not work with python versions prior to 2.6
  • Loading branch information...
commit 4e6161559a406007177932a117bbdecbe920d2c5 1 parent d77d5aa
@archen archen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tekextensions/views.py
View
2  tekextensions/views.py
@@ -16,7 +16,7 @@ def add_new_model(request, model_name, form=None):
if form.is_valid():
try:
new_obj = form.save()
- except forms.ValidationError, error:
+ except form.ValidationError as error:
new_obj = None
if new_obj:
Please sign in to comment.
Something went wrong with that request. Please try again.