Merge "Fix missing check if logger is None"

This commit is contained in:
Zuul 2019-05-16 14:44:58 +00:00 committed by Gerrit Code Review
commit ccb7cebd3a
1 changed files with 3 additions and 2 deletions

View File

@ -67,6 +67,7 @@ def get_artifacts_from_result_data(result_data, logger=None):
d['url'] = url
ret.append(d)
else:
logger.debug("Result data did not pass artifact schema "
"validation: %s", result_data)
if logger:
logger.debug("Result data did not pass artifact schema "
"validation: %s", result_data)
return ret