This commit is contained in:
retoor 2025-06-14 13:35:41 +02:00
parent 0e12f7a75c
commit cac691e9ff

View File

@ -31,7 +31,9 @@ class BaseMapper:
database_exception = None
for x in range(20):
try:
return func(*args, **kwargs)
result = func(*args, **kwargs)
self.db.commit()
return result
except Exception as ex:
await asyncio.sleep(0)
database_exception = ex