diff options
-rw-r--r-- | license_protected_downloads/management/commands/report_process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/license_protected_downloads/management/commands/report_process.py b/license_protected_downloads/management/commands/report_process.py index fb6ea9d..cc433be 100644 --- a/license_protected_downloads/management/commands/report_process.py +++ b/license_protected_downloads/management/commands/report_process.py @@ -26,7 +26,7 @@ class Command(BaseCommand): os.rename(settings.REPORT_CSV, filename + '_' + timestamp + file_extension) except OSError as e: - if e.errno != os.errno.EEXIST: + if e.errno != os.errno.ENOENT: raise # Process any report files that have failed in the pass. |