From 8a29ab82b0837e9326980610f27b95e67e41eb3e Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Wed, 26 Feb 2020 08:11:22 +0100 Subject: [PATCH] handle case when process is none in services --- sau/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sau/services.py b/sau/services.py index 231be90..2966572 100644 --- a/sau/services.py +++ b/sau/services.py @@ -97,6 +97,8 @@ def restart_services(): processes = {} services = {} for proc in service_procs: + if not proc: + continue try: service_exe = proc.exe() proc_name = proc.name()