Skip to content

Commit

Permalink
Improve assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
epandurski committed Feb 10, 2019
1 parent 5c44e77 commit cdb666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_signalbus/atomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def retry_on_integrity_error(self):

session = self.session
assert session.info.get(_ATOMIC_FLAG_SESSION_INFO_KEY), \
'calls to "retry_on_integrity_error" must be wrapped in atomic block'
'Calls to "retry_on_integrity_error" must be wrapped in atomic block.'
session.flush()
try:
yield
Expand Down

0 comments on commit cdb666b

Please sign in to comment.