CC-4092: Not checking for return type "None" on some function calls in media-monitor

-fixed
This commit is contained in:
Martin Konecny 2012-07-10 10:48:44 -04:00
parent aecee0574d
commit 2e5b1d9ca8
2 changed files with 7 additions and 5 deletions

View file

@ -117,10 +117,9 @@ class AirtimeMediaMonitorBootstrap():
stdout = self.mmc.exec_command(command)
if stdout is None:
self.logger.error("Unrecoverable error when syncing db to filesystem.")
return
new_files = stdout.splitlines()
new_files = []
else:
new_files = stdout.splitlines()
new_and_modified_files = set()
for file_path in new_files: