fix wrong catch for unset icon
This commit is contained in:
@@ -224,7 +224,7 @@ def application(request):
|
|||||||
tmp += tmp_svg
|
tmp += tmp_svg
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[Error SVG]: {e}")
|
print(f"[Error SVG]: {e}")
|
||||||
elif 'icon' in j and j['icon'] is not None:
|
elif 'icon' in j and j['icon'] != '':
|
||||||
Button(inner_html=f"<i class='fa-2x {j['icon']}'><i>",
|
Button(inner_html=f"<i class='fa-2x {j['icon']}'><i>",
|
||||||
style = color_bg + color_fg,
|
style = color_bg + color_fg,
|
||||||
command=j['command'], a=eval(var))
|
command=j['command'], a=eval(var))
|
||||||
|
|||||||
Reference in New Issue
Block a user