fix: Error catching for old sites
This commit is contained in:
parent
8b3e0d4cab
commit
8a52f04ccf
@ -22,12 +22,6 @@ def render(data,db_object):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
return "<h1>Invalid HTML</h1><br>" + str(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:
|
try:
|
||||||
avatar = db_object['avatar']
|
avatar = db_object['avatar']
|
||||||
hnschat = db_object['hnschat']
|
hnschat = db_object['hnschat']
|
||||||
@ -35,6 +29,9 @@ def render(data,db_object):
|
|||||||
hns = db_object['HNS']
|
hns = db_object['HNS']
|
||||||
btc = db_object['BTC']
|
btc = db_object['BTC']
|
||||||
eth = db_object['ETH']
|
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)) == ""):
|
if (rgb_to_hex(generate_foreground_color(fg_colour)) == ""):
|
||||||
hns_icon = "assets/img/HNSW.png"
|
hns_icon = "assets/img/HNSW.png"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user