pids: avoid type error if name is empty (#10688)

Avoid type error if name is empty.
This commit is contained in:
Felix Fontein 2025-08-18 06:24:30 +02:00 committed by GitHub
commit ceba0cbedb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -195,7 +195,7 @@ class Pids(object):
self._pids = []
def execute(self):
if self._name:
if self._name is not None:
self._pids = self._ps.get_pids_by_name(self._name)
else:
try: