mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
lf_qa.py : try except to indicate that the data base may have moved
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -290,7 +290,10 @@ class csv_sqlite_dash():
|
||||
# NOTE: html links to png do not like spaces
|
||||
png_server_img = self.server + png_path.replace(self.cut,'')
|
||||
# generate png image
|
||||
kpi_fig.write_image(png_path,scale=1,width=1200,height=350)
|
||||
try:
|
||||
kpi_fig.write_image(png_path,scale=1,width=1200,height=350)
|
||||
except:
|
||||
print("ERROR: {database} Was correct database passed in, moved or duplicates of same name?".format(database=self.database))
|
||||
#https://plotly.com/python/interactive-html-export/
|
||||
# generate html image (interactive)
|
||||
kpi_fig.write_html(html_path)
|
||||
|
||||
Reference in New Issue
Block a user