Skip to content
Snippets Groups Projects
Commit d823d9ae authored by Robin Keskisärkkä's avatar Robin Keskisärkkä
Browse files

fix crash on empty newline

parent acb19c50
Branches
No related tags found
No related merge requests found
...@@ -195,7 +195,10 @@ def add_members(path, namespace_id, headers, url): ...@@ -195,7 +195,10 @@ def add_members(path, namespace_id, headers, url):
""" """
with open(path, "r") as f: with open(path, "r") as f:
for line in f.readlines(): for line in f.readlines():
parts = line.strip().split(":") line = line.strip()
if line == "":
continue
parts = line.split(":")
user = parts[0] user = parts[0]
path = f"{parts[-2]}{parts[-1]}" path = f"{parts[-2]}{parts[-1]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment