##// END OF EJS Templates
transaction: use ProgrammingError for when an committed transaction is used...
Martin von Zweigbergk -
r46330:5df1655e default
parent child Browse files
Show More
@@ -38,10 +38,8 b" GEN_GROUP_POST_FINALIZE = b'postfinalize"
38 38 def active(func):
39 39 def _active(self, *args, **kwds):
40 40 if self._count == 0:
41 raise error.Abort(
42 _(
43 b'cannot use transaction when it is already committed/aborted'
44 )
41 raise error.ProgrammingError(
42 b'cannot use transaction when it is already committed/aborted'
45 43 )
46 44 return func(self, *args, **kwds)
47 45
General Comments 0
You need to be logged in to leave comments. Login now