mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-18 19:14:54 +00:00
lf_qa.py : removed exit on not being able to find png file
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
08456ac9b3
commit
c07c211e52
@@ -329,17 +329,20 @@ class csv_sql:
|
||||
# NOTE: html links to png do not like spaces
|
||||
png_server_img = self.server + png_path.replace(self.cut, '')
|
||||
# generate png image
|
||||
png_present = True
|
||||
try:
|
||||
kpi_fig.write_image(png_path, scale=1, width=1200, height=300)
|
||||
except ValueError as err:
|
||||
print("{msg}".format(msg=err))
|
||||
print("exiting")
|
||||
exit(1)
|
||||
print("ValueError kpi_fig.write_image {msg}".format(msg=err))
|
||||
png_present = False
|
||||
# exit(1)
|
||||
except BaseException as err:
|
||||
print("{msg}".format(msg=err))
|
||||
print("exiting")
|
||||
exit(1)
|
||||
print("BaseException kpi_fig.write_image{msg}".format(msg=err))
|
||||
png_present = False
|
||||
# exit(1)
|
||||
# generate html image (interactive)
|
||||
# TODO Do not crash if a PNG is not present
|
||||
if png_present:
|
||||
kpi_fig.write_html(html_path)
|
||||
img_kpi_html_path = self.server + html_path
|
||||
img_kpi_html_path = img_kpi_html_path.replace(self.cut, '')
|
||||
|
||||
Reference in New Issue
Block a user