diff --git a/tools/daca2.py b/tools/daca2.py index c02c7b3d9..b6f4f7667 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -110,11 +110,11 @@ def scanarchive(fullpath): results.close() filename = fullpath[fullpath.rfind('/') + 1:] - subprocess.call(['nice', 'wget', fullpath]) - if not os.path.isfile(filename): - removeAllExceptResults() - os.remove(filename) - sys.exit(1) + count = 5 + while count > 0 and not os.path.isfile(filename): + count = count - 1 + time.sleep(10) + subprocess.call(['nice', 'wget', fullpath]) if filename[-3:] == '.gz': subprocess.call(['tar', 'xzvf', filename])