Permalink
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...
archen committed Mar 1, 2014
1 parent d77d5aa commit 4e6161559a406007177932a117bbdecbe920d2c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 tekextensions/views.py
View
@@ -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:

0 comments on commit 4e61615

Please sign in to comment.