mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
additional error message
This commit is contained in:
parent
6104799d78
commit
30bb0ba828
1 changed files with 2 additions and 1 deletions
|
@ -115,7 +115,8 @@ class DatabaseManager:
|
||||||
return new_message.id
|
return new_message.id
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
session.rollback()
|
session.rollback()
|
||||||
raise e
|
self.log(f"error adding new message to databse with error: {e}", isWarning=True)
|
||||||
|
self.log(f"---> please delete or update existing database", isWarning=True)
|
||||||
finally:
|
finally:
|
||||||
session.remove()
|
session.remove()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue