Avoid crash if GBPUSD comes back as None.

This commit is contained in:
Edward Betts 2023-11-21 19:19:22 +00:00
parent 5c3cb47ab5
commit 30cd3f7b86

View file

@ -101,7 +101,9 @@
<ul>
<li>Today is {{now.strftime("%A, %-d %b %Y")}}</li>
<li>GBPUSD: {{"{:,.3f}".format(gbpusd)}}</li>
{% if gbpusd %}
<li>GBPUSD: {{"{:,.3f}".format(gbpusd)}}</li>
{% endif %}
<li>GWR advance ticket furthest date:
{% if gwr_advance_tickets %}
{{ gwr_advance_tickets.strftime("%A, %-d %b %Y") }}