mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
lf_qa.py : updated exceptions to print out reasonable explantions
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -331,10 +331,14 @@ class csv_sql:
|
|||||||
# generate png image
|
# generate png image
|
||||||
try:
|
try:
|
||||||
kpi_fig.write_image(png_path, scale=1, width=1200, height=300)
|
kpi_fig.write_image(png_path, scale=1, width=1200, height=300)
|
||||||
except BaseException:
|
except ValueError as err:
|
||||||
print(
|
print("{msg}".format(msg=err))
|
||||||
"ERROR: {database} Was correct database passed in, moved or duplicates of same name?".format(
|
print("ValueError on kpi_fig.write_image exiting")
|
||||||
database=self.database))
|
exit(1)
|
||||||
|
except BaseException as err:
|
||||||
|
print("{msg}".format(msg=err))
|
||||||
|
print("BaseException on kpi_fig.write_image exiting")
|
||||||
|
exit(1)
|
||||||
# generate html image (interactive)
|
# generate html image (interactive)
|
||||||
kpi_fig.write_html(html_path)
|
kpi_fig.write_html(html_path)
|
||||||
img_kpi_html_path = self.server + html_path
|
img_kpi_html_path = self.server + html_path
|
||||||
|
|||||||
Reference in New Issue
Block a user