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

Chore: Error logging when audio source dir n/a

parent d1125a55
No related branches found
No related tags found
No related merge requests found
......@@ -342,7 +342,12 @@ class AuraMonitor:
if status["exists"]:
status["has_content"] = any([True for _ in os.scandir(dir_path)])
if not status["has_content"]:
msg = f"Directory '{dir_path}' has no contents!"
self.logger.warning(SU.red(msg))
else:
msg = f"Directory '{dir_path}' doesn't exist!"
self.logger.error(SU.red(msg))
return status
def get_url_response(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