Skip to content

Commit f083b03

Browse files
committed
Hotfix remove temp file if exists
1 parent 0bd097a commit f083b03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sensorsafrica/management/commands/upload_to_ckan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def handle(self, *args, **options):
103103
)
104104

105105
# Cleanup
106-
os.remove(filepath)
106+
if os.path.exists(filepath):
107+
os.remove(filepath)
107108

108109
# Don't DDOS openAFRICA
109110
time.sleep(5)

0 commit comments

Comments
 (0)