Update to new style exception catching

This commit is contained in:
Magnus Hagander
2019-01-19 19:34:14 +01:00
parent fdca701a76
commit 142f0805c2
11 changed files with 17 additions and 17 deletions

View File

@ -46,7 +46,7 @@ def other_vectors_validator(val):
))
except ValidationError:
raise
except Exception, e:
except Exception as e:
raise ValidationError("Failed to parse vectors: %s" % e)