Skip to content

Commit 0bc3c1e

Browse files
committed
execute instruction printed after loading config
1 parent 851dc6e commit 0bc3c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trainer/src/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ def execute_instruction(self, fname, contents):
215215
fpath = os.path.join(self.instruction_dir, fname)
216216
name = fname.rpartition('_')[0] # remove hash
217217
if name in [i.__name__ for i in self.valid_instructions]:
218-
print('execute_instruction', name)
219218
try:
220219
if contents.strip() == "":
221220
# ("Instruction file is empty, skipping:", name)
222221
return False
223222
config = self.fix_config_paths(json.loads(contents))
223+
print('execute_instruction', name)
224224
getattr(self, name)(config)
225225
except Exception as e:
226226
print('Exception parsing instruction', e)

0 commit comments

Comments
 (0)