mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] wrap 'nginx -t' diagnosis call in try/catch
This commit is contained in:
parent
eb38100265
commit
6078e42ed9
1 changed files with 6 additions and 1 deletions
|
@ -593,7 +593,12 @@ def tools_diagnosis(auth, private=False):
|
|||
}
|
||||
|
||||
# nginx -t
|
||||
diagnosis['nginx'] = check_output("nginx -t").strip().split("\n")
|
||||
try:
|
||||
diagnosis['nginx'] = check_output("nginx -t").strip().split("\n")
|
||||
except Exception as e:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
logger.warning("Unable to check 'nginx -t', exception: %s" % e)
|
||||
|
||||
# Services status
|
||||
services = service_status()
|
||||
|
|
Loading…
Add table
Reference in a new issue