Skip to content

Commit

Permalink
fix #2238 if cwd() cannot be determined always return "" instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Apr 17, 2023
1 parent c7e635d commit fd42ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/_psbsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def cwd(self):
elif NETBSD or HAS_PROC_OPEN_FILES:
# FreeBSD < 8 does not support functions based on
# kinfo_getfile() and kinfo_getvmmap()
return cext.proc_cwd(self.pid) or ""
return cext.proc_cwd(self.pid)
else:
raise NotImplementedError(
"supported only starting from FreeBSD 8" if
Expand Down

0 comments on commit fd42ca8

Please sign in to comment.