Skip to content

Commit

Permalink
Hotfix remove temp file if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
karimkawambwa committed Mar 2, 2020
1 parent 0bd097a commit f083b03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sensorsafrica/management/commands/upload_to_ckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def handle(self, *args, **options):
)

# Cleanup
os.remove(filepath)
if os.path.exists(filepath):
os.remove(filepath)

# Don't DDOS openAFRICA
time.sleep(5)
Expand Down

0 comments on commit f083b03

Please sign in to comment.