Commit 86973526 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Fix: 'urlListFileName' variable is None on job error.

parent ca746ed7
Loading
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -456,6 +456,9 @@ class RetrieveExecutor(TaskExecutor):
        self.numBlocks = 0
        self.procBlocks = 0
        self.totalSize = 0
        
        # If an error occurs, the variable is None: just ignore it (the URL list is not generated)
        if self.urlListFileName is not None:
            urlListFilePath = os.path.join(self.resDir, self.urlListFileName)
            try:
                os.remove(urlListFilePath)