fixed bug when failing to detect service script

This commit is contained in:
Fredrik Eriksson 2019-04-07 09:35:21 +02:00
parent 465b71cf57
commit d0cb0d1124
No known key found for this signature in database
GPG Key ID: 8825C73A0FD1502A

View File

@ -106,6 +106,7 @@ def restart_services():
service_name = platform.identify_service_from_bin(service_exe) service_name = platform.identify_service_from_bin(service_exe)
except sau.errors.UnknownServiceError: except sau.errors.UnknownServiceError:
log.warning('Could not find service for process {}'.format(proc)) log.warning('Could not find service for process {}'.format(proc))
continue
services.add(service_name) services.add(service_name)