optional height and width

This commit is contained in:
Roy Olav Purser 2021-05-13 16:20:14 +02:00
parent 3c83946b4b
commit 39375d7478
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -190,8 +190,8 @@ class MainHandler(tornado.web.RequestHandler):
self.set_status(404)
self.write("HTML template missing.")
def handle_embed(self, provider):
width = self.get_query_argument("maxwidth")
height = self.get_query_argument("maxheight")
width = self.get_query_argument("maxwidth", None)
height = self.get_query_argument("maxheight", None)
if isinstance(width, str) and isinstance(height, str):
pass
if isinstance(width, str):