mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-21 12:34: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
|
# NOTE: html links to png do not like spaces
|
||||||
png_server_img = self.server + png_path.replace(self.cut, '')
|
png_server_img = self.server + png_path.replace(self.cut, '')
|
||||||
# generate png image
|
# generate png image
|
||||||
|
png_present = True
|
||||||
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 ValueError as err:
|
except ValueError as err:
|
||||||
print("{msg}".format(msg=err))
|
print("ValueError kpi_fig.write_image {msg}".format(msg=err))
|
||||||
print("exiting")
|
png_present = False
|
||||||
exit(1)
|
# exit(1)
|
||||||
except BaseException as err:
|
except BaseException as err:
|
||||||
print("{msg}".format(msg=err))
|
print("BaseException kpi_fig.write_image{msg}".format(msg=err))
|
||||||
print("exiting")
|
png_present = False
|
||||||
exit(1)
|
# exit(1)
|
||||||
# generate html image (interactive)
|
# generate html image (interactive)
|
||||||
|
# TODO Do not crash if a PNG is not present
|
||||||
|
if png_present:
|
||||||
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
|
||||||
img_kpi_html_path = img_kpi_html_path.replace(self.cut, '')
|
img_kpi_html_path = img_kpi_html_path.replace(self.cut, '')
|
||||||
|
|||||||
Reference in New Issue
Block a user