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')