About Error FileNotFoundError: [Errno 2] No such file or directory: '/proc/12825/stat'
the some suggest
#2418
Labels
FileNotFoundError: [Errno 2] No such file or directory: '/proc/12825/stat'
the some suggest
#2418
when I was useing the function
process_iter
discover a not myself can catch the error。For errors like
FileNotFoundError: [Errno 2] No such file or directory: '/proc/xxx/stat'
。I searched for problems in lssues , but found that the latest version didn't fix them. Through the source code found that this function only catch the NoSuchProcess exception,and this error I think is a problem with
pids
functino,pids
from /proc dir fetch a unusua path,lead to open the path/proc/xxx/stat
raised an exception,so we can do try/catch the FileNotFoundError error at the open file location。The text was updated successfully, but these errors were encountered: