|
|
@ -211,14 +211,18 @@ def main():
|
|
|
|
# Tidy up console after tqdm
|
|
|
|
# Tidy up console after tqdm
|
|
|
|
print('\n')
|
|
|
|
print('\n')
|
|
|
|
|
|
|
|
|
|
|
|
# Check contents of log file
|
|
|
|
# Stop logging
|
|
|
|
|
|
|
|
logging.shutdown()
|
|
|
|
with open(log_name, 'r') as f:
|
|
|
|
with open(log_name, 'r') as f:
|
|
|
|
log_data = f.read()
|
|
|
|
log_data = f.read()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check contents of log file
|
|
|
|
if log_data:
|
|
|
|
if log_data:
|
|
|
|
warnings.warn(
|
|
|
|
warnings.warn(
|
|
|
|
'Some files failed to download. See log for details.',
|
|
|
|
'Some files failed to download. See log for details.',
|
|
|
|
stacklevel=2)
|
|
|
|
stacklevel=2)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
os.remove(log_name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if __name__ == '__main__':
|
|
|
|