mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Merge pull request #141 from firstlookmedia/137-docker-exception
Ignore exceptions when there's an error deleting an old container image
This commit is contained in:
commit
2206df0422
1 changed files with 8 additions and 5 deletions
|
@ -482,11 +482,14 @@ class GlobalCommon(object):
|
||||||
elif found_image_id == "":
|
elif found_image_id == "":
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print(f"Deleting old dangerzone container image")
|
print("Deleting old dangerzone container image")
|
||||||
|
|
||||||
subprocess.check_output(
|
try:
|
||||||
[self.get_container_runtime(), "rmi", "--force", found_image_id],
|
subprocess.check_output(
|
||||||
startupinfo=self.get_subprocess_startupinfo(),
|
[self.get_container_runtime(), "rmi", "--force", found_image_id],
|
||||||
)
|
startupinfo=self.get_subprocess_startupinfo(),
|
||||||
|
)
|
||||||
|
except:
|
||||||
|
print("Couldn't delete old container image, so leaving it there")
|
||||||
|
|
||||||
return installed
|
return installed
|
||||||
|
|
Loading…
Reference in a new issue