From a323f41b60c81dd42a55e3e1dc56b88840bbe4f6 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Thu, 25 Jun 2009 23:44:05 +0200 Subject: [PATCH] link: guard against "pages" without link-titles (e.g. graphics files) --- plugins/link.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/link.py b/plugins/link.py index ae86ca0..5190061 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -29,6 +29,8 @@ def do_link(m): #link = link.tolower() for f in files: file = files[f] + if not file.has_key("linktitle"): + continue if file.title == link or \ file.linktitle == link or \ os.path.splitext(os.path.basename(file.path))[0] == link: -- 2.39.2