successful pydantic experiments

This commit is contained in:
John Lancaster
2024-03-16 11:23:53 -05:00
parent 055cf4e51c
commit 1fc7e45d26
2 changed files with 80 additions and 35 deletions

View File

@@ -27,7 +27,7 @@ class MotionCanceller(SceneDetector):
callback=lambda *args, **kwargs: app.cancel_motion_callback(),
delay=0.5
)
except:
except Exception:
self.log(f'Error cancelling motion callback for {self.args["app"]}', level='ERROR')
else:
self.log('Cancelled motion callback')