From 67a0cf000a4bd01ae6b40241ad984856d3fedb1c Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 26 Mar 2014 12:14:35 +0100 Subject: Fixed crashes of gifterm when displaying certain GIFs --- pixelterm/gifterm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelterm/gifterm.py b/pixelterm/gifterm.py index 7ca25ed..4c87978 100755 --- a/pixelterm/gifterm.py +++ b/pixelterm/gifterm.py @@ -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 -- cgit