mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
fix typo. Thanks jayferd
This commit is contained in:
parent
7136ee862d
commit
c7456d95ba
@ -229,7 +229,7 @@ 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','.im','.jpeg','.pcx','.ppm','.tiff','.xbm','.tif')):
|
||||
ext = string[string.rfind('.') +1 :len(string)]
|
||||
if ext.lower() == 'jpg':
|
||||
ext = 'jpeg'
|
||||
|
Loading…
x
Reference in New Issue
Block a user