fix: Remove any quotes from error message
All checks were successful
Build Docker / Build Main Image (push) Successful in 18s
Build Docker / Build SLDs Image (push) Successful in 19s

This commit is contained in:
Nathan Woodburn 2023-11-15 21:35:59 +11:00
parent f246b9d033
commit ffc0a2ba9a
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -45,7 +45,7 @@ def render(data,db_object):
hns_icon = "assets/img/HNS.png" hns_icon = "assets/img/HNS.png"
except Exception as e: except Exception as e:
return "<h1>Invalid data</h1><br><h2>Please contact support</h2><br><p>This can often be fixed by saving your site again in the editor</p><br>" + "<script>console.log('" + str(e) + "');</script>" return "<h1>Invalid data</h1><br><h2>Please contact support</h2><br><p>This can often be fixed by saving your site again in the editor</p><br>" + "<script>console.log('" + str(e).replace('\'','') + "');</script>"
return render_template('city.html',html=html,bg_colour=bg_colour,text_colour=text_colour, return render_template('city.html',html=html,bg_colour=bg_colour,text_colour=text_colour,