Commit 34dd9509 authored by echel0n's avatar echel0n

Fixed issue #322 - NoneType error when trying to view Trakt `most anticipated`...

Fixed issue #322 - NoneType error when trying to view Trakt `most anticipated` shows due to indexer failing to have artwork available.
Refactored error page to new UI look.
parent 3299a1eb
# Changelog
- * c813015 - 2018-11-17: Pre-Release v9.4.36.dev2
- * 2dba8dd - 2018-11-17: Fixed issue #322 - NoneType error when trying to view Trakt `most anticipated` shows due to indexer failing to have artwork available. Refactored error page to new UI look.
- * 3299a1e - 2018-11-17: Pre-Release v9.4.36.dev2
- * 9048cd4 - 2018-11-17: Refactored DanishBits torrent provider.
- * 3f51fb3 - 2018-11-17: Pre-Release v9.4.36.dev1
- * 9f9fcab - 2018-11-17: Added `backup` call to API, allows you to specify the folder you wish to backup your application data to.
......
......@@ -73,7 +73,7 @@ def indexerImage(id=None, which=None):
image_url = t.images(int(id), key_type=image_type)[0]['filename']
WebSession().download(image_url, image_path)
except (KeyError, IndexError):
return
pass
if image_type == 'banner':
return Banner(int(id), media_format)
......
<%inherit file="../layouts/main.mako"/>
<%block name="content">
<p>
${_('A mako error has occured.')}<br>
${_('If this happened during an update a simple page refresh may be the solution.')}<br>
${_('Mako errors that happen during updates may be a one time error if there were significant ui changes.')}
</p>
<hr>
<a href="#mako-error" class="btn" data-toggle="collapse">${_('Show/Hide Error')}</a>
<div id="mako-error" class="collapse">
<br>
<div class="text-left">
<% filename, lineno, function, line = backtrace.traceback[-1] %>
<pre class="text-white">
${_('File')} ${filename}:${lineno}, ${_('in')} ${function}:
% if line:
${line}
% endif
${str(backtrace.error.__class__.__name__)}:${backtrace.error}
</pre>
<div class="row">
<div class="col-md-8 mx-auto">
<div class="card mb-3">
<div class="card-header">
<h3>${title}</h3>
</div>
<div class="card-body">
<p>
${_('A mako error has occured.')}<br>
${_('If this happened during an update a simple page refresh may be the solution.')}<br>
${_('Mako errors that happen during updates may be a one time error if there were significant UI changes.')}
</p>
<hr>
<a href="#mako-error" class="btn" data-toggle="collapse">${_('Show/Hide Error')}</a>
<div id="mako-error" class="collapse">
<br>
<div class="text-left">
<% filename, lineno, function, line = backtrace.traceback[-1] %>
<pre class="text-danger" style="white-space: pre-line">
${_('File')} ${filename}:${lineno}, ${_('in')} ${function}:
% if line:
${line}
% endif
${str(backtrace.error.__class__.__name__)}:${backtrace.error}
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</%block>
\ No newline at end of file
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