summaryrefslogtreecommitdiffstats
path: root/glances/amps_list.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2018-05-12 18:38:37 +0200
committernicolargo <nicolas@nicolargo.com>2018-05-12 18:38:37 +0200
commit33d20ab36f27d0a129122526fd625ca2c3914fce (patch)
treefb0f3c4b000cdf91ebaef2bad9124c1fe6a89f41 /glances/amps_list.py
parent0d7dd3df7f18974882ff4f4f16c4b9009a61f1b4 (diff)
Change copyright year to 2018
Diffstat (limited to 'glances/amps_list.py')
-rw-r--r--glances/amps_list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glances/amps_list.py b/glances/amps_list.py
index 3e1152be..365d4c52 100644
--- a/glances/amps_list.py
+++ b/glances/amps_list.py
@@ -2,7 +2,7 @@
#
# This file is part of Glances.
#
-# Copyright (C) 2017 Nicolargo <nicolas@nicolargo.com>
+# Copyright (C) 2018 Nicolargo <nicolas@nicolargo.com>
#
# Glances is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
@@ -113,7 +113,7 @@ class AmpsList(object):
continue
try:
amps_list = [p for p in processlist for c in p['cmdline'] if re.search(v.regex(), c) is not None]
- except TypeError:
+ except (TypeError, KeyError):
continue
if len(amps_list) > 0:
# At least one process is matching the regex