From 982fa97fb31b68ac3946c8294cb6ab2dd1f60671 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 31 May 2012 17:13:00 +0000 Subject: [PATCH] Don't crash on rendering link that doesn't exist in narrative web output svn: r19728 --- src/plugins/webreport/NarrativeWeb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 234fc245c..697eedb27 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -7556,7 +7556,8 @@ class NavWebReport(Report): # FIXME: no family page in NarWeb return None else: - raise AttributeError("unknown object type '%s'" % obj_class) + print ("NarrativeWeb ignoring link type '%s'" % obj_class) + return None return self.build_url_fname(handle, subdir, up) + self.ext def build_url_fname(self, fname, subdir = None, up = False):