mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] wrap 'meltdown' diagnosis call in try/catch
This commit is contained in:
parent
6078e42ed9
commit
a58449ad51
1 changed files with 10 additions and 5 deletions
|
@ -637,12 +637,17 @@ def tools_diagnosis(auth, private=False):
|
||||||
|
|
||||||
diagnosis['private']['regen_conf'] = service_regen_conf(with_diff=True, dry_run=True)
|
diagnosis['private']['regen_conf'] = service_regen_conf(with_diff=True, dry_run=True)
|
||||||
|
|
||||||
diagnosis['security'] = {
|
try:
|
||||||
"CVE-2017-5754": {
|
diagnosis['security'] = {
|
||||||
"name": "meltdown",
|
"CVE-2017-5754": {
|
||||||
"vulnerable": _check_if_vulnerable_to_meltdown(),
|
"name": "meltdown",
|
||||||
|
"vulnerable": _check_if_vulnerable_to_meltdown(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
except Exception as e:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
logger.warning("Unable to check for meltdown vulnerability: %s" % e)
|
||||||
|
|
||||||
return diagnosis
|
return diagnosis
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue