Skip to content

Commit

Permalink
ndb: fix syntax to work with Python < 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota authored Mar 29, 2021
2 parents a9ad493 + c03f29f commit bdcbfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroute2/ndb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def commit(self):
try:
rb.rollback()
except Exception as e:
self.log.warning(f'ignore rollback exception: {e}')
self.log.warning('ignore rollback exception: %s' % e)
raise
self.event.set()
return self
Expand Down

0 comments on commit bdcbfa0

Please sign in to comment.