Skip to content
Snippets Groups Projects
Commit 47aec687 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed empty line bug

parent 03f00c84
No related branches found
No related tags found
No related merge requests found
Pipeline #2897 passed with stage
in 7 minutes and 55 seconds
......@@ -85,7 +85,7 @@ def _expandVarnameWildcards(config: Config, data: pd.DataFrame) -> Config:
def _clearRows(rows: Iterable[List[str]], comment: str = "#") -> Iterator[Tuple[str, List[Any]]]:
for i, row in enumerate(rows):
if not row[0].lstrip().startswith(comment):
if row and not row[0].lstrip().startswith(comment):
row = [c.split(comment)[0].strip() for c in row]
yield i, row
......
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