From 78e81100158aea04215af6c2444977984a51baaa Mon Sep 17 00:00:00 2001 From: Pedro Vanzella Date: Mon, 3 Nov 2014 13:22:59 -0200 Subject: [PATCH] Fix Mako Runtime Error when adding multiple comics. Sometimes, when adding multiple comics, series['Previous'] or series['Next'] wouldn't be set by the time data/interfaces/default/comicdetails.html got rendered, which resulted in a KeyError and a ugly error screen. --- data/interfaces/default/comicdetails.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/interfaces/default/comicdetails.html b/data/interfaces/default/comicdetails.html index 16b1c484..380d306a 100755 --- a/data/interfaces/default/comicdetails.html +++ b/data/interfaces/default/comicdetails.html @@ -43,8 +43,12 @@
+ % if 'Previous' in series: + % endif + % if 'Next' in series: + % endif