Skip to content

Commit

Permalink
commit cursor before closing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcCalvoC committed Jul 31, 2024
1 parent 052f23b commit af5070a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poweremail_signaturit/poweremail_mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def update_poweremail_certificat_state(self, cursor, uid, ids, context=None):
all_data = tmp_cursor.fetchall()
pwids = [x[0] for x in all_data]
self.write(tmp_cursor, uid, pwids, {'certificat_update_datetime': datetime.now().strftime("%Y-%m-%d %H:%M:%S")})
tmp_cursor.commit()
except LockNotAvailable:
return False
finally:
Expand Down

0 comments on commit af5070a

Please sign in to comment.