Exception handling for changed dict while loop in videv_base
This commit is contained in:
parent
2ec5487f00
commit
ce85e1ca27
3
base.py
3
base.py
@ -65,9 +65,12 @@ class videv_base(mqtt_base):
|
|||||||
self.__periodic__.run()
|
self.__periodic__.run()
|
||||||
|
|
||||||
def send_all(self, rt):
|
def send_all(self, rt):
|
||||||
|
try:
|
||||||
for key in self:
|
for key in self:
|
||||||
if self[key] is not None:
|
if self[key] is not None:
|
||||||
self.__tx__(key, self[key])
|
self.__tx__(key, self[key])
|
||||||
|
except RuntimeError:
|
||||||
|
self.logger.warning("Runtimeerror while sending cyclic videv information. This may happen on startup.")
|
||||||
|
|
||||||
def add_display(self, my_key, ext_device, ext_key, on_change_only=True):
|
def add_display(self, my_key, ext_device, ext_key, on_change_only=True):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user