Skip to content

Commit

Permalink
Update cylc/flow/rundb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders authored Nov 11, 2024
1 parent 9995636 commit 50b79b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cylc/flow/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,13 @@ def execute_queued_items(self):
raise
self.n_tries += 1
LOG.warning(
"%(file)s: write attempt (%(attempt)d) did not complete: %(error)s\n" % {
"file": self.db_file_name, "attempt": self.n_tries, "error": str(e)})
"%(file)s: write attempt (%(attempt)d)"
" did not complete: %(error)s\n" % {
"file": self.db_file_name,
"attempt": self.n_tries,
"error": str(e)
}
)
if self.conn is not None:
with suppress(sqlite3.Error):
self.conn.rollback()
Expand Down

0 comments on commit 50b79b2

Please sign in to comment.