fix: Error catching for old sites
All checks were successful
Build Docker / Build SLDs Image (push) Successful in 17s
Build Docker / Build Main Image (push) Successful in 19s

This commit is contained in:
Nathan Woodburn 2023-11-15 18:28:40 +11:00
parent 8b3e0d4cab
commit 8a52f04ccf
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -22,12 +22,6 @@ def render(data,db_object):
except Exception as e:
return "<h1>Invalid HTML</h1><br>" + str(e)
bg_colour = db_object['bg_colour']
fg_colour = db_object['fg_colour']
text_colour = db_object['text_colour']
try:
avatar = db_object['avatar']
hnschat = db_object['hnschat']
@ -35,6 +29,9 @@ def render(data,db_object):
hns = db_object['HNS']
btc = db_object['BTC']
eth = db_object['ETH']
bg_colour = db_object['bg_colour']
fg_colour = db_object['fg_colour']
text_colour = db_object['text_colour']
if (rgb_to_hex(generate_foreground_color(fg_colour)) == ""):
hns_icon = "assets/img/HNSW.png"
else: