diff --git a/mdrsclient/commands/download.py b/mdrsclient/commands/download.py index 9ca0e29..1543c9d 100644 --- a/mdrsclient/commands/download.py +++ b/mdrsclient/commands/download.py @@ -145,6 +145,9 @@ class DownloadCommand(BaseCommand): try: file_api.download(info.file, info.path) except Exception: + print(f"Failed: ${info.path}") + if os.path.isfile(info.path): + os.remove(info.path) return False print(info.path) return True