Skip to content
Snippets Groups Projects
Commit 86973526 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

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

parent ca746ed7
Branches
Tags
No related merge requests found
Pipeline #17165 passed
...@@ -456,6 +456,9 @@ class RetrieveExecutor(TaskExecutor): ...@@ -456,6 +456,9 @@ class RetrieveExecutor(TaskExecutor):
self.numBlocks = 0 self.numBlocks = 0
self.procBlocks = 0 self.procBlocks = 0
self.totalSize = 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) urlListFilePath = os.path.join(self.resDir, self.urlListFileName)
try: try:
os.remove(urlListFilePath) os.remove(urlListFilePath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment