summaryrefslogtreecommitdiff
path: root/pgweb/security/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-19 18:34:14 +0000
committerMagnus Hagander2019-01-26 15:19:26 +0000
commit142f0805c2a8aa865f88bffdd6fbe4d76397ad03 (patch)
tree1edce1ec269b40fa6220d3bca603bfa77577d081 /pgweb/security/models.py
parentfdca701a766f8b7a20e11655b68d5aae7144a6b3 (diff)
Update to new style exception catching
Diffstat (limited to 'pgweb/security/models.py')
-rw-r--r--pgweb/security/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/security/models.py b/pgweb/security/models.py
index cde84ba0..6d88282c 100644
--- a/pgweb/security/models.py
+++ b/pgweb/security/models.py
@@ -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)