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:
Chuck SmileyRekiere
2021-08-13 06:35:18 -06:00
parent 40d643a63b
commit 2a8e89c45c

View File

@@ -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)