diff options
author | Rob Austein <sra@hactrn.net> | 2014-05-29 19:33:43 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-05-29 19:33:43 +0000 |
commit | 07a045d1259f30878abba416b86373c05c929965 (patch) | |
tree | 9b8e4fe0038e4891e3b262168dce5ecfdccc36f7 /rpki/sql.py | |
parent | e6047c9f737275d898d88737719dd09a6ee4f25c (diff) |
Python style police: instantiate exceptions before raising them
(convert two-expression form of "raise" to one-expression form).
svn path=/trunk/; revision=5844
Diffstat (limited to 'rpki/sql.py')
-rw-r--r-- | rpki/sql.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpki/sql.py b/rpki/sql.py index 536ebbe2..adcc78f6 100644 --- a/rpki/sql.py +++ b/rpki/sql.py @@ -226,9 +226,9 @@ class sql_persistent(object): elif len(results) == 1: return results[0] else: - raise rpki.exceptions.DBConsistancyError, \ - "Database contained multiple matches for %s where %s: %r" % \ - (cls.__name__, where % tuple(repr(a) for a in args), results) + raise rpki.exceptions.DBConsistancyError( + "Database contained multiple matches for %s where %s: %r" % + (cls.__name__, where % tuple(repr(a) for a in args), results)) @classmethod def sql_fetch_all(cls, gctx): |