quick fix for broken image paths

This commit is contained in:
Sanj 2011-07-06 17:12:42 +05:30
parent f5dc79f575
commit 2e5dd5d251

View File

@ -376,7 +376,10 @@ def fileList(request):
fileData = f.get_dict()
fileData['can_edit'] = f.can_edit(user)
if f.type == 'image':
fileData['thumb'] = f.get_thumb("19x12")
try:
fileData['thumb'] = f.get_thumb("19x12")
except:
fileData['thumb'] = "/static/images/icons2/image.jpg"
else:
fileData['thumb'] = "/static/images/icons2/" + f.type + ".jpg"
d['files'].append(fileData)