diff options
-rw-r--r-- | cerbero/utils/shell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py index c4139834..59972c45 100644 --- a/cerbero/utils/shell.py +++ b/cerbero/utils/shell.py @@ -332,7 +332,8 @@ def download_curl(url, destination=None, recursive=False, check_cert=True, overw try: call(cmd, path) except FatalError, e: - os.remove(destination) + if os.path.exists(destination): + os.remove(destination) raise e |