Closed yuta100101 closed 3 years ago
Running the following code will raise NameError in IPython.
import gokart class Task(gokart.TaskOnKart): pass gokart.run(["Task", "--tree-info-mode=simple"])
NameError: name 'exit' is not defined
And the same is true when execute gokart.run(["Task", "--delete-unnecessary-output-files"]).
gokart.run(["Task", "--delete-unnecessary-output-files"])
This might be resolved by replacing exit() with sys.exit() in _try_tree_info() and _try_to_delete_unnecessary_output_file().
exit()
sys.exit()
_try_tree_info()
_try_to_delete_unnecessary_output_file()
@yuta100101
We believe #248 have fixed this :)
And we've released hotfix version 1.0.4 of gokart.
Really thx for your contribution!
Running the following code will raise NameError in IPython.
And the same is true when execute
gokart.run(["Task", "--delete-unnecessary-output-files"])
.This might be resolved by replacing
exit()
withsys.exit()
in_try_tree_info()
and_try_to_delete_unnecessary_output_file()
.