提交 5ff1caa0 编写于 作者: N Nicolas Hennion

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

上级 d50f49eb
......@@ -343,7 +343,7 @@ class Plugin(GlancesPlugin):
listsorted = sorted(self.stats,
key=lambda process: process[sortedby],
reverse=sortedreverse)
except KeyError:
except KeyError, TypeError:
listsorted = sorted(self.stats,
key=lambda process: process['name'],
reverse=False)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册