Commit 1e86a1c4 authored by Marko Kuder's avatar Marko Kuder
Browse files

debugging syntax errors

parent 7f4b2534
......@@ -547,7 +547,7 @@ def render_partial_datestamp(datestamp_str):
def get_cache(resource_dict):
archival = resource_dict.get('archiver')
if not archival:
if not archival or is_string(archival):
return (None, None)
url = (archival['cache_url'] or '').strip().replace('None', '')
# strip off the domain, in case this is running in test
......
......@@ -266,7 +266,7 @@
{% else %}
<a class="button w-230" disabled="disabled" title="{{ _('This download is not currently available') }}" href="#">
{% endif %}
<span class="icon-download"></span><strong>{{ _('Download all') }}{% if zip_res.get('archiver') and not isinstance(zip_res['archiver'], string)
<span class="icon-download"></span><strong>{{ _('Download all') }}{% if zip_res.get('archiver') and not h.is_string(zip_res['archiver'])
and zip_res['archiver'].get('size') %} ({{ zip_res['archiver']['size']|filesizeformat }}){% endif %}</strong>
</a>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment