Skip to content
Snippets Groups Projects
Commit f1c5d474 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

only copy the unique elements of the list

parent 7ec35e11
No related branches found
No related tags found
No related merge requests found
...@@ -464,7 +464,7 @@ class CycleControl(dict): ...@@ -464,7 +464,7 @@ class CycleControl(dict):
msg = "Collecting the required restart data" ; logging.info(msg) msg = "Collecting the required restart data" ; logging.info(msg)
msg = " to directory: %s " % targetdir ; logging.debug(msg) msg = " to directory: %s " % targetdir ; logging.debug(msg)
for file in self.RestartFileList: for file in set(self.RestartFileList):
if os.path.isdir(file): # skip dirs if os.path.isdir(file): # skip dirs
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment