diff --git a/modules/core/monitor.py b/modules/core/monitor.py index f2bc75a41116894a68dd315d6adb3c921964b023..bef7448711c83d34d2f291dad7e57c818556807a 100644 --- a/modules/core/monitor.py +++ b/modules/core/monitor.py @@ -78,13 +78,16 @@ class Monitoring: """ Checks if the current status is valid to run engine """ - if self.status["soundsystem"]["mixer"]["in_filesystem_0"] \ - and self.status["redis_ready"] \ - and self.status["audio_store"]["exists"]: - - return True - return False + try: + if self.status["soundsystem"]["mixer"]["in_filesystem_0"] \ + and self.status["redis_ready"] \ + and self.status["audio_store"]["exists"]: + return True + return False + except Exception as e: + self.logger.error("Exception while validating engine status: " + str(e)) + return False def validate_url_connection(self, url):