Commits

Joseph Tate  committed a71e7ec

In the widget, handle missing files on disk

  • Participants
  • Parent commits d0a7311

Comments (0)

Files changed (1)

File tw2/upload/templates/image.mak

     %if w.value:
         <% image = w.value.get('image') %>
     %else:
-        <% image = None %>
+        <% image = '' %>
     %endif
-    <% has_image = image and image.image_broker %>
+    <% has_image = image and image.image_broker and image.image_broker.web_path %>
     ## The preview image
     %if has_image:
     <div class="photo_update">