Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 1a8d9f6

Browse files
author
Greg Turner
committed
Admin improvement
1 parent 785a3a3 commit 1a8d9f6

File tree

1 file changed

+6
-1
lines changed
  • collectionkit/contrib/work_creator/admin

1 file changed

+6
-1
lines changed

collectionkit/contrib/work_creator/admin/image.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ def original_filesize(self, obj):
4040

4141
def thumbnail_link(self, obj):
4242
link = admin_url(obj)
43-
return "<a href='%s'>%s</a>" % (link, self.thumbnail(obj) or "None")
43+
try:
44+
thumb = self.thumbnail(obj)
45+
except:
46+
thumb = "None"
47+
48+
return "<a href='%s'>%s</a>" % (link, thumb)
4449
thumbnail_link.allow_tags = True
4550

4651

0 commit comments

Comments
 (0)