Commit 1bbfc608 authored by Philipp Hörist's avatar Philipp Hörist

[preview] Fix displaying GIFs without duration

parent df5d2d60
......@@ -26,7 +26,7 @@ def analyse_image(mem):
results = {
'size': image.size,
'mode': 'full',
'duration': image.info["duration"]
'duration': image.info.get('duration', 0)
}
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment