diff --git a/nwmurl/urlgennwm.py b/nwmurl/urlgennwm.py index 7207bc7..9801295 100644 --- a/nwmurl/urlgennwm.py +++ b/nwmurl/urlgennwm.py @@ -568,7 +568,7 @@ def generate_urls_operational( if write_to_file == True: if os.path.exists("filenamelist.txt"): os.remove("filenamelist.txt") - with open("filenamelist.txt", "wt") as file: - for item in file_list: - file.write(f"{item}\n") + with open("filenamelist.txt", "wt") as file: + for item in file_list: + file.write(f"{item}\n") return file_list