Skip to content

Commit

Permalink
Merge pull request #56 from wvolz/bugfix-macos-psutilcrash
Browse files Browse the repository at this point in the history
fix crash on MacOS related to psutil accessdenied
  • Loading branch information
mbridak authored Nov 14, 2023
2 parents 20b739e + 6ba9014 commit d022fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion not1mm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def check_process(name: str) -> bool:
if len(proc.cmdline()) == 2:
if name in proc.cmdline()[1] and "python" in proc.cmdline()[0]:
return True
except (psutil.NoSuchProcess, psutil.ZombieProcess):
except (psutil.NoSuchProcess, psutil.ZombieProcess, psutil.AccessDenied):
continue
return False

Expand Down

0 comments on commit d022fdf

Please sign in to comment.