diff --git a/nixstatsagent/nixstatsagent.py b/nixstatsagent/nixstatsagent.py index bac0cff..b0f3eed 100755 --- a/nixstatsagent/nixstatsagent.py +++ b/nixstatsagent/nixstatsagent.py @@ -27,7 +27,7 @@ import urllib2 -__version__ = '1.1.43' +__version__ = '1.1.44' __FILEABSDIRNAME__ = os.path.dirname(os.path.abspath(__file__)) diff --git a/nixstatsagent/plugins/process.py b/nixstatsagent/plugins/process.py index aa2c3a1..f333d09 100644 --- a/nixstatsagent/plugins/process.py +++ b/nixstatsagent/plugins/process.py @@ -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: