From: W. Trevor King Date: Wed, 17 Oct 2012 22:31:21 +0000 (-0400) Subject: gallery.py: adjust CGIGalleryServer._image() to handle no kwargs case. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a44643638a354644cc90c81344e5441c2bd2911c;p=blog.git gallery.py: adjust CGIGalleryServer._image() to handle no kwargs case. --- 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):