gallery.py: adjust CGIGalleryServer._image() to handle no kwargs case.
authorW. Trevor King <wking@tremily.us>
Wed, 17 Oct 2012 22:31:21 +0000 (18:31 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 17 Oct 2012 22:31:21 +0000 (18:31 -0400)
posts/gallery/gallery.py

index cac2ea6c49231cf99987fe7621ec91ea397ebf6c..806af0eb05249533a04882b5252b3f539081714a 100755 (executable)
@@ -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 '<img src="{}" />'.format(image_url)
 
     def _image_page(self, image):