mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Avoid recorder thread crashing (#21668)
This commit is contained in:
parent
e10e27d809
commit
df25128923
@ -318,6 +318,10 @@ class Recorder(threading.Thread):
|
||||
CONNECT_RETRY_WAIT)
|
||||
tries += 1
|
||||
|
||||
except exc.SQLAlchemyError:
|
||||
updated = True
|
||||
_LOGGER.exception("Error saving event: %s", event)
|
||||
|
||||
if not updated:
|
||||
_LOGGER.error("Error in database update. Could not save "
|
||||
"after %d tries. Giving up", tries)
|
||||
|
Loading…
x
Reference in New Issue
Block a user