From a44643638a354644cc90c81344e5441c2bd2911c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 17 Oct 2012 18:31:21 -0400 Subject: [PATCH] gallery.py: adjust CGIGalleryServer._image() to handle no kwargs case. --- posts/gallery/gallery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posts/gallery/gallery.py b/posts/gallery/gallery.py index cac2ea6..806af0e 100755 --- a/posts/gallery/gallery.py +++ b/posts/gallery/gallery.py @@ -461,6 +461,8 @@ class CGIGalleryServer (object): def _image(self, image, **kwargs): if kwargs: image_path,image_url = self._thumb(image, **kwargs) + else: + image_url = image return ''.format(image_url) def _image_page(self, image): -- 2.26.2