mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 18:22:37 +02:00
fix: do not catch bare exceptions
Bare excepts will catch keyboard-exit exceptions, system-exit etc. which is probably not what we want.
This commit is contained in:
parent
65a8827daa
commit
eba30f3c17
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ class Container(IsolationProvider):
|
||||||
[Container.get_runtime(), "rmi", "--force", found_image_id],
|
[Container.get_runtime(), "rmi", "--force", found_image_id],
|
||||||
startupinfo=get_subprocess_startupinfo(),
|
startupinfo=get_subprocess_startupinfo(),
|
||||||
)
|
)
|
||||||
except:
|
except Exception:
|
||||||
log.warning("Couldn't delete old container image, so leaving it there")
|
log.warning("Couldn't delete old container image, so leaving it there")
|
||||||
|
|
||||||
return installed
|
return installed
|
||||||
|
|
|
@ -79,7 +79,7 @@ class Settings:
|
||||||
if version.parse(get_version()) > version.parse(self.get(key)):
|
if version.parse(get_version()) > version.parse(self.get(key)):
|
||||||
self.set(key, get_version())
|
self.set(key, get_version())
|
||||||
|
|
||||||
except:
|
except Exception:
|
||||||
log.error("Error loading settings, falling back to default")
|
log.error("Error loading settings, falling back to default")
|
||||||
self.settings = self.default_settings
|
self.settings = self.default_settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue