handle case when process is none in services

This commit is contained in:
Fredrik Eriksson 2020-02-26 08:11:22 +01:00
parent 13e56c6d56
commit 8a29ab82b0
Signed by: feffe
GPG Key ID: 18524638BE25530A

View File

@ -97,6 +97,8 @@ def restart_services():
processes = {} processes = {}
services = {} services = {}
for proc in service_procs: for proc in service_procs:
if not proc:
continue
try: try:
service_exe = proc.exe() service_exe = proc.exe()
proc_name = proc.name() proc_name = proc.name()