News download: Fix regression that broke downloading of images in gif format

This commit is contained in:
Kovid Goyal 2013-02-16 21:17:46 +05:30
parent 60b4f4fd01
commit 226e2348c7

View File

@ -386,7 +386,7 @@ class RecursiveFetcher(object):
else: else:
try: try:
if itype not in {'png', 'jpg', 'jpeg'}: if itype not in {'png', 'jpg', 'jpeg'}:
itype == 'png' if itype == 'gif' else 'jpg' itype = 'png' if itype == 'gif' else 'jpg'
im = Image() im = Image()
im.load(data) im.load(data)
data = im.export(itype) data = im.export(itype)