Skip to content
Snippets Groups Projects
Commit d1170082 authored by Frede H's avatar Frede H :speech_balloon:
Browse files

decision on if custom and not selection

parent 07947e20
No related branches found
No related tags found
No related merge requests found
......@@ -100,11 +100,14 @@ def write_configuration(filename, selection, custom=False):
if custom:
if selection == ["Custom"]:
selection = "OnlyCountry = Custom\n"
elif not selection:
selection = "# OnlyCountry = \n"
else:
selection = "OnlyCountry = {list}\n".format(
list=",".join(selection))
else:
selection = "# OnlyCountry = \n"
try:
with open(
filename) as cnf, tempfile.NamedTemporaryFile(
......
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