From cfb6913ef6306747189ef70d138a5b32ba23cf0c Mon Sep 17 00:00:00 2001 From: j Date: Sun, 24 Jan 2016 16:04:18 +0530 Subject: [PATCH] dont fail on resize --- oml/node/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oml/node/server.py b/oml/node/server.py index 221d2e3..303a770 100644 --- a/oml/node/server.py +++ b/oml/node/server.py @@ -128,7 +128,10 @@ class Handler(http.server.SimpleHTTPRequestHandler): return if preview: from item.icons import get_icon_sync - data = get_icon_sync(id, 'preview', 512) + try: + data = get_icon_sync(id, 'preview', 512) + except: + data = None if data: self.send_response(200, 'ok') self.send_header('Content-type', 'image/jpg')