stagingapi: get_ignored_requests() handle empty file.

This commit is contained in:
Jimmy Berry 2017-03-18 21:01:53 -05:00
parent 76dc41ed45
commit 8ebe94bc5f

View File

@ -496,7 +496,7 @@ class StagingAPI(object):
def get_ignored_requests(self):
ignore = self.load_file_content('{}:Staging'.format(self.project), 'dashboard', 'ignored_requests')
if ignore is None:
if ignore is None or not ignore:
return {}
return yaml.safe_load(ignore)