aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-03-26 12:14:35 +0100
committerjaseg <jaseg@jaseg.net>2014-03-26 12:14:35 +0100
commit67a0cf000a4bd01ae6b40241ad984856d3fedb1c (patch)
tree23a47bb022287fcfefe86d518544405a4d0adfa2
parent755b369ff9a564af3bee5273ebc929e76dacf81d (diff)
downloadpixelterm-67a0cf000a4bd01ae6b40241ad984856d3fedb1c.tar.gz
pixelterm-67a0cf000a4bd01ae6b40241ad984856d3fedb1c.tar.bz2
pixelterm-67a0cf000a4bd01ae6b40241ad984856d3fedb1c.zip
Fixed crashes of gifterm when displaying certain GIFs
-rwxr-xr-xpixelterm/gifterm.py2
1 files changed, 1 insertions, 1 deletions
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