aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-10 13:48:50 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-10 13:48:50 +0100
commit704f231f80444be4b28eb565465c8ad76ab55be6 (patch)
treedddc8b56e33f7879b93b92bf83d5602e6a9a2e11 /resources/tools/presentation/generator_plots.py
parentc1335b81c08aeeb5d45af39d45ce02dc1a7d4235 (diff)
Report: Add data
Change-Id: I57b4f1cdb6d4467f8a93b466a5173e00d493b9a8 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_plots.py')
-rw-r--r--resources/tools/presentation/generator_plots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 285e7ab51d..08cf1a9c30 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -232,9 +232,9 @@ def plot_hdrh_lat_by_percentile(plot, input_data):
replace(u'-ndrpdr', u'').replace(u'2n1l-', u''))
try:
nic = re.search(REGEX_NIC, test[u"parent"]).group(1)
- except IndexError:
+ except (IndexError, AttributeError, KeyError, ValueError):
nic = u""
- name_link = f"{nic}-{test[u'name']}"
+ name_link = f"{nic}-{test[u'name']}".replace(u'-ndrpdr', u'')
logging.info(f" Generating the graph: {name_link}")