diff --git a/trains/backend_interface/task/repo/scriptinfo.py b/trains/backend_interface/task/repo/scriptinfo.py index b802a4bb..977fa426 100644 --- a/trains/backend_interface/task/repo/scriptinfo.py +++ b/trains/backend_interface/task/repo/scriptinfo.py @@ -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):