aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-07-23 11:05:04 +0200
committerTibor Frank <tifrank@cisco.com>2021-07-23 11:05:04 +0200
commit1da19da813655f643bc3c6e4d03bed987f076f07 (patch)
tree7a3b3d88f19a9825583551f026f5bd64c8827d0d /resources/tools/presentation/generator_tables.py
parenta8d0c4410095c6b87f81bd541ca7ec91e6d62b70 (diff)
Trending: Add exception handling for anomalies classification
Change-Id: I6f2ee7552c513ccf2fa453f143dd52ea880bd412 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index a715ecb800..449b2357a8 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -1234,6 +1234,9 @@ def table_perf_trending_dash_html(table, input_data):
try:
with open(table[u"input-file"], u'rt') as csv_file:
csv_lst = list(csv.reader(csv_file, delimiter=u',', quotechar=u'"'))
+ except FileNotFoundError as err:
+ logging.warning(f"{err}")
+ return
except KeyError:
logging.warning(u"The input file is not defined.")
return