dont fail on resize
This commit is contained in:
parent
35c0c02d16
commit
cfb6913ef6
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue