Commit 6bf23011 authored by Philipp Hörist's avatar Philipp Hörist

[preview] Fix displaying GIFs without duration

parent b7eeed09
...@@ -26,7 +26,7 @@ def analyse_image(mem): ...@@ -26,7 +26,7 @@ def analyse_image(mem):
results = { results = {
'size': image.size, 'size': image.size,
'mode': 'full', 'mode': 'full',
'duration': image.info["duration"] 'duration': image.info.get('duration', 0)
} }
try: 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