[FIX] web: avoid cast None in int

Some function send None instead of 0
This commit is contained in:
Jeremy Kersten
2017-07-28 18:30:01 +02:00
parent e686385138
commit f3f66d2b8e
+2 -2
View File
@@ -999,8 +999,8 @@ class Binary(http.Controller):
elif status != 200 and download:
return request.not_found()
height = int(height)
width = int(width)
height = int(height or 0)
width = int(width or 0)
if content and (width or height):
# resize maximum 500*500
if width > 500: