Skip to content

Commit

Permalink
switched exception block to use as instead of comma. note: this will …
Browse files Browse the repository at this point in the history
…not work with python versions prior to 2.6
  • Loading branch information
archen committed Mar 1, 2014
1 parent d77d5aa commit 4e61615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tekextensions/views.py
Expand Up @@ -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:
Expand Down

0 comments on commit 4e61615

Please sign in to comment.