add sanity checks for inventory to stop crashing

This commit is contained in:
aronwk-aaron
2023-10-28 00:27:17 -05:00
parent a7a68d2fe1
commit c9ad415f13
3 changed files with 21 additions and 8 deletions

View File

@@ -66,7 +66,8 @@
{% endwith %}
{% endif %}
{%if inv_item.attr_c|int > 999 %}
<br />Count: {{ inv_item.attr_c|numberFormat }}
{% if 'attr_c' in inv_item %}
{%if inv_item.attr_c|int > 999 %}
<br />Count: {{ inv_item.attr_c|numberFormat }}
{% endif %}
{% endif %}