Permalink
Browse files

image thumbnails more resilient

  • Loading branch information...
1 parent 3b71b96 commit fe7438c5786ebb25279b30cb437736b5847b9584 @evildmp committed Dec 20, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 arkestra_image_plugin/cms_plugins.py
@@ -509,8 +509,11 @@ def get_thumbnail(self, context, instance):
return instance.image.image.thumbnails['admin_tiny_icon']
def icon_src(self, instance):
- return instance.image.thumbnails['admin_tiny_icon']
-
+ if instance.image:
+ try:
+ return instance.image.image.thumbnails['admin_tiny_icon']
+ except KeyError:
+ pass
plugin_pool.register_plugin(FilerImagePlugin)

0 comments on commit fe7438c

Please sign in to comment.