Avoid crash if GBPUSD comes back as None.
This commit is contained in:
parent
5c3cb47ab5
commit
30cd3f7b86
|
@ -101,7 +101,9 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Today is {{now.strftime("%A, %-d %b %Y")}}</li>
|
<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:
|
<li>GWR advance ticket furthest date:
|
||||||
{% if gwr_advance_tickets %}
|
{% if gwr_advance_tickets %}
|
||||||
{{ gwr_advance_tickets.strftime("%A, %-d %b %Y") }}
|
{{ gwr_advance_tickets.strftime("%A, %-d %b %Y") }}
|
||||||
|
|
Loading…
Reference in a new issue