Skip to content

Commit

Permalink
cleaned up exceptions, python3 compatible (I hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinkingswood committed Apr 23, 2014
1 parent 7aae3e0 commit 983416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eav/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def validate_attributes(self):
else:
try:
attribute.validate_value(value)
except ValidationError, e:
except ValidationError as e:
raise ValidationError(_(u"%(attr)s EAV field %(err)s") % \
{'attr': attribute.slug,
'err': e})
Expand Down

0 comments on commit 983416c

Please sign in to comment.