Skip to content

Commit 7c520e5

Browse files
authored
Update bactopia-to-md.py
1 parent 859855f commit 7c520e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/bactopia-to-md.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ def read_nextflow_config(nf_config):
122122
""" """
123123
config = {}
124124
with open(nf_config, 'rt') as nf_fh:
125-
for line in nf_fh:
126-
k,v = line.rstrip().split(' = ')
127-
config[k] = nf_to_list(v) if v.startswith('[') else v
125+
if "=" in line:
126+
for line in nf_fh:
127+
k,v = line.rstrip().split(' = ')
128+
config[k] = nf_to_list(v) if v.startswith('[') else v
128129
return config
129130

130131
def nf_to_list(param):

0 commit comments

Comments
 (0)