early bailout conditions caught by type check
This commit is contained in:
parent
f7c7496cfd
commit
bdf0fb323e
1 changed files with 4 additions and 0 deletions
|
|
@ -233,6 +233,8 @@ class Process(AbstractProcess):
|
|||
logger.debug(f'Checking name for pid {pid}')
|
||||
with Process.open_process(pid) as process:
|
||||
path = process.get_path()
|
||||
if path is None:
|
||||
continue
|
||||
|
||||
name = os.path.basename(path)
|
||||
logger.debug(f'Name was "{name}"')
|
||||
|
|
|
|||
Loading…
Reference in a new issue