From 2e5dd5d2510e26e22d0601da83cfd3f0c735af1b Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 17:12:42 +0530 Subject: [PATCH] quick fix for broken image paths --- edgware/files/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edgware/files/views.py b/edgware/files/views.py index 604377a..5897ed9 100644 --- a/edgware/files/views.py +++ b/edgware/files/views.py @@ -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)