diff options
author | Tibor Frank <tifrank@cisco.com> | 2021-06-02 12:38:30 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2021-06-02 10:40:06 +0000 |
commit | ccae0f8da97bce98aaaa5cc529b20b88a3d58679 (patch) | |
tree | aee41a951c7b709425706dc34936c221dd9ca0c9 /resources | |
parent | fa3c865b27c2cfcf11b5fc45bf1a34290f3c32ce (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')
-rw-r--r-- | resources/tools/presentation/generator_plots.py | 6 |
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"]) |