Another patch bis for non root user on Mac OS X - issue #423

This commit is contained in:
Nicolas Hennion 2014-10-01 14:11:32 +02:00
parent 5ff1caa051
commit a296f5cea9

View File

@ -343,7 +343,7 @@ class Plugin(GlancesPlugin):
listsorted = sorted(self.stats,
key=lambda process: process[sortedby],
reverse=sortedreverse)
except KeyError, TypeError:
except (KeyError, TypeError):
listsorted = sorted(self.stats,
key=lambda process: process['name'],
reverse=False)