quick fix for broken image paths
This commit is contained in:
parent
f5dc79f575
commit
2e5dd5d251
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user