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