summaryrefslogtreecommitdiffstats
path: root/src/glances.py
diff options
context:
space:
mode:
authornicolargo <nicolargo@nicolargo-fujitsu.(none)>2012-02-18 18:45:05 +0100
committernicolargo <nicolargo@nicolargo-fujitsu.(none)>2012-02-18 18:45:05 +0100
commit7cde28d62b765884d89315242b5437ec44d16ed3 (patch)
tree30bfb4b3c22c9b09e776639e1e1d245989fed2c2 /src/glances.py
parentac541c1b93563a24cb6efe57de51d9e79ac366aa (diff)
Try before removing process
Diffstat (limited to 'src/glances.py')
-rwxr-xr-xsrc/glances.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glances.py b/src/glances.py
index 0fdf0b9d..0a553d6e 100755
--- a/src/glances.py
+++ b/src/glances.py
@@ -2,7 +2,7 @@
#
# Glances is a simple textual monitoring tool
#
-# Pre-requisites: Python 2.6+ and PsUtil 0.4.0+
+# Pre-requisites: Python 2.6+ and PsUtil 0.4.0+ (for full functions)
#
# Copyright (C) Nicolargo 2012 <nicolas@nicolargo.com>
#
@@ -22,7 +22,7 @@
from __future__ import generators
__appname__ = 'glances'
-__version__ = "1.4b9"
+__version__ = "1.4b10"
__author__ = "Nicolas Hennion <nicolas@nicolargo.com>"
__licence__ = "LGPL"
@@ -492,7 +492,10 @@ class glancesStats():
except:
pass
else:
- self.process_all.remove(proc)
+ try:
+ self.process_all.remove(proc)
+ except:
+ pass
# If it is the first grab then empty process list
if (self.process_first_grab):
self.process = []