Skip to content

Commit

Permalink
Fix for missing processes
Browse files Browse the repository at this point in the history
  • Loading branch information
vfuse committed Jun 18, 2018
1 parent 9a5ed39 commit d28e3ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nixstatsagent/nixstatsagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import urllib2


__version__ = '1.1.43'
__version__ = '1.1.44'

__FILEABSDIRNAME__ = os.path.dirname(os.path.abspath(__file__))

Expand Down
6 changes: 4 additions & 2 deletions nixstatsagent/plugins/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ def run(self, *unused):
pinfo['cmdline'] = unicode(pinfo['cmdline'], sys.getdefaultencoding(), errors="replace").strip()
pinfo['name'] = unicode(pinfo['name'], sys.getdefaultencoding(), errors="replace")
pinfo['username'] = unicode(pinfo['username'], sys.getdefaultencoding(), errors="replace")
pinfo['exe'] = unicode(pinfo['exe'], sys.getdefaultencoding(), errors="replace")

try:
pinfo['exe'] = unicode(pinfo['exe'], sys.getdefaultencoding(), errors="replace")
except:
pass
except psutil.NoSuchProcess:
pass
except psutil.AccessDenied:
Expand Down

0 comments on commit d28e3ce

Please sign in to comment.