Revert - Recorder exception catch for long state string
This commit is contained in:
parent
0593affd7e
commit
9d6bd017d9
1 changed files with 0 additions and 5 deletions
|
@ -330,11 +330,6 @@ class Recorder(threading.Thread):
|
||||||
CONNECT_RETRY_WAIT)
|
CONNECT_RETRY_WAIT)
|
||||||
tries += 1
|
tries += 1
|
||||||
|
|
||||||
except exc.DataError as err:
|
|
||||||
# catch query data error - for example longer state string
|
|
||||||
# than 255 characters
|
|
||||||
tries = 99
|
|
||||||
|
|
||||||
if not updated:
|
if not updated:
|
||||||
_LOGGER.error("Error in database update. Could not save "
|
_LOGGER.error("Error in database update. Could not save "
|
||||||
"after %d tries. Giving up", tries)
|
"after %d tries. Giving up", tries)
|
||||||
|
|
Loading…
Add table
Reference in a new issue