Fixed crashes of gifterm when displaying certain GIFs

This commit is contained in:
jaseg 2014-03-26 12:14:35 +01:00
parent 755b369ff9
commit 67a0cf000a

View file

@ -37,7 +37,7 @@ def main():
frame.putpalette(palette)
c = frame.convert("RGBA")
if img.info['background'] != img.info['transparency']:
if img.info['background'] != img.info.get('transparency'):
last_frame.paste(c, c)
else:
last_frame = c