[preview] Fix displaying GIFs without duration

This commit is contained in:
Philipp Hörist
2018-10-28 13:08:29 +01:00
parent df5d2d60ea
commit 1bbfc60814

View File

@@ -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: