Skip to content
Snippets Groups Projects
Commit 3590a1cd authored by David Trattnig's avatar David Trattnig
Browse files

Exception handling for Monitoring.

parent 97aa574b
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment