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,9 +117,8 @@ 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 = []
else:
new_files = stdout.splitlines()
new_and_modified_files = set()

View File

@ -291,6 +291,9 @@ class MediaMonitorCommon:
self.logger.debug(command)
stdout = self.exec_command(command)
if stdout is None:
return []
else:
return stdout.splitlines()
def touch_index_file(self):