diff --git a/tabellio/pcfviews/homenews.py b/tabellio/pcfviews/homenews.py index 8bb5061..fe4b27b 100644 --- a/tabellio/pcfviews/homenews.py +++ b/tabellio/pcfviews/homenews.py @@ -27,6 +27,8 @@ class View(grok.View): class PictureView(BrowserView): def __call__(self): + if not self.context.picture: + return None self.request.response.setHeader('Content-type', self.context.picture.contentType) return self.context.picture.data