Skip to content

Commit 983416c

Browse files
cleaned up exceptions, python3 compatible (I hope)
1 parent 7aae3e0 commit 983416c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eav/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def validate_attributes(self):
491491
else:
492492
try:
493493
attribute.validate_value(value)
494-
except ValidationError, e:
494+
except ValidationError as e:
495495
raise ValidationError(_(u"%(attr)s EAV field %(err)s") % \
496496
{'attr': attribute.slug,
497497
'err': e})

0 commit comments

Comments
 (0)