Fix log object might be None

This commit is contained in:
allegroai 2020-12-06 11:23:28 +02:00
parent f7cb4e3e9c
commit df0eef6280

View File

@ -649,7 +649,8 @@ class ScriptInfo(object):
auxiliary_git_diff = None
if not plugin:
log.info("No repository found, storing script code instead")
if log:
log.info("No repository found, storing script code instead")
else:
try:
for i, d in enumerate(scripts_dir):