Commit 4395d49b by Szeberényi Imre

exception fix

parent 829580ea
...@@ -185,6 +185,8 @@ class Client: ...@@ -185,6 +185,8 @@ class Client:
running_vms.append(args.name) running_vms.append(args.name)
except psutil.NoSuchProcess: except psutil.NoSuchProcess:
logger.warning('Process %d lost.', entry.pid) logger.warning('Process %d lost.', entry.pid)
except TypeError:
logger.warning('ParseError %s.', entry.cmdline())
interfaces = psutil.network_io_counters(pernic=True) interfaces = psutil.network_io_counters(pernic=True)
for interface, data in interfaces.iteritems(): for interface, data in interfaces.iteritems():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment