aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-06-02 12:38:30 +0200
committerTibor Frank <tifrank@cisco.com>2021-06-02 10:40:06 +0000
commitccae0f8da97bce98aaaa5cc529b20b88a3d58679 (patch)
treeaee41a951c7b709425706dc34936c221dd9ca0c9 /resources/tools/presentation
parentfa3c865b27c2cfcf11b5fc45bf1a34290f3c32ce (diff)
PAL: Fix plot_ndrpdr_box_name
- if there are no values, put warning to the log. Change-Id: Ibea99e3f4962684afefa572c46bcca157b8ab3cf Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r--resources/tools/presentation/generator_plots.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 39b6f9bea4..1d6bbaabf5 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -761,8 +761,10 @@ def plot_ndrpdr_box_name(plot, input_data):
hoverinfo=u"y+name"
)
)
- data_y_max.append(max(vals))
-
+ try:
+ data_y_max.append(max(vals))
+ except ValueError as err:
+ logging.warning(f"No values to use.\n{err!r}")
try:
# Create plot
layout = deepcopy(plot[u"layout"])