Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Sep 7, 2024
1 parent 50d3ab6 commit 46df4a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofunctions/service_control/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def nt_service_status(service):
# win32serviceutil.QueryServiceStatus(service) returns a list. If second entry = 4, service is running
# TODO: handle other service states than 4
"""
# pylint: disable=E0606 (possibly-used-before-assignment)
service_status = win32serviceutil.QueryServiceStatus(service)
if service_status[1] == 4:
return True
Expand Down

0 comments on commit 46df4a7

Please sign in to comment.