lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 86f1c1dc authored by Stefan Schantl's avatar Stefan Schantl

location(8): Remove any temporary files after unsuccessful downloads

Signed-off-by: default avatarStefan Schantl <stefan.schantl@ipfire.org>
parent 5e63ddd3
......@@ -180,6 +180,9 @@ class Downloader(object):
# Return temporary file
return t
# Delete the temporary file after unsuccessful downloads
os.unlink(t.name)
raise FileNotFoundError(url)
def _check_database(self, f, public_key, timestamp=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment