提交 8784f4bb 编写于 作者: N nicolargo

Correct filter error if command name/line is None

上级 8cb96384
......@@ -140,6 +140,9 @@ class GlancesFilter(object):
return False
try:
return self._filter_re.match(value) is None
except AttributeError:
# Filter processes crashs with a bad regular expression pattern (issue #665)
except (AttributeError, TypeError):
# AttributeError
# Filter processes crashs with a bad regular expression pattern (issue #665)
# TypeError
# Filter processes crashs if value is None (issue #1105)
return False
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册