handle case when process is none in services
This commit is contained in:
parent
13e56c6d56
commit
8a29ab82b0
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user