aboutsummaryrefslogtreecommitdiff
path: root/license_protected_downloads
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2016-03-03 15:16:20 +0000
committerBen Copeland <ben.copeland@linaro.org>2016-03-03 15:44:28 +0000
commitb2015d5bf382316adfb7e898de04d3e93500285d (patch)
treecc0a7d7f121ef22462775b1a1840e543da6594f7 /license_protected_downloads
parenta56e6ab4f13c3bade6372701159b8f9cd787901c (diff)
report_process: pass the error instead of raise
If there is no csv file, then that means no downloads. So we can just pass the error. Change-Id: Ifabc53a5329fb83b59f60b80e34a953a42b51a08 Reviewed-on: https://review.linaro.org/10812 Reviewed-by: Andy Doan <andy.doan+gerrit@linaro.org>
Diffstat (limited to 'license_protected_downloads')
-rw-r--r--license_protected_downloads/management/commands/report_process.py2
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.