From aab3c87d8bac4b3f921a24ac47aa411b16006b64 Mon Sep 17 00:00:00 2001 From: Colin Davis Date: Tue, 30 Aug 2011 18:39:55 -0400 Subject: [PATCH] Remove unsupported exts --- webfront.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webfront.py b/webfront.py index dd3a210..cea0135 100755 --- a/webfront.py +++ b/webfront.py @@ -229,18 +229,16 @@ class ImgHandler(tornado.web.RequestHandler): #Change to a usuable format - if string.endswith(('.png','.gif','.jpg','.bmp','.im','.jpeg','.pcx','.ppm','.tiff','.xbm','.tif')): + if string.endswith(('.png','.gif','.jpg','.bmp','.jpeg','.ppm')): ext = string[string.rfind('.') +1 :len(string)] if ext.lower() == 'jpg': ext = 'jpeg' - if ext.lower() == 'tif': - ext = 'tiff' else: ext = "png" if client_ignoreext != "false": - if string.endswith(('.png','.gif','.jpg','.bmp','.im','.jpeg','.pcx','.ppm','.tiff','.xbm','tif')): + if string.endswith(('.png','.gif','.jpg','.bmp','.jpeg','.ppm')): string = string[0:string.rfind('.')] r = Robohash(string)