Skip to content
Snippets Groups Projects
Commit 242fc11c authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

loop: actually quit when the file is empty

With this change, and empty file would always return a '' line. That line would
be ignore and we would read the file again.
parent b6219008
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,8 @@
def _get_all_actions(base_dir):
actions_file = base_dir / ACTION_FILE
actions = actions_file.read_text()
return [a.strip() for a in actions.splitlines()]
actions = [a.strip() for a in actions.splitlines()]
return [a for a in actions if a]
def _write_all_actions(base_dir, actions):
actions_file = base_dir / ACTION_FILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment