summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 035221014a1..5dbed1ab726 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1000,8 +1000,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: