Skip to content

Commit

Permalink
fix NoSuchProcess error
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanljones committed Oct 6, 2023
1 parent c9d2ce4 commit ad9911c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrekordbox/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def get_process_id(name: str, raise_exec=False) -> int:
23456
"""
for proc in psutil.process_iter():
proc_name = os.path.splitext(proc.name())[0] # needed on Windows (.exe)
try:
proc_name = os.path.splitext(proc.name())[0] # needed on Windows (.exe)
if proc_name == name:
return proc.pid
except (psutil.AccessDenied, psutil.NoSuchProcess):
Expand Down

0 comments on commit ad9911c

Please sign in to comment.