This commit is contained in:
Kovid Goyal 2016-02-20 10:12:06 +05:30
parent 6a6c7a0105
commit a0a32a214a

View File

@ -245,10 +245,11 @@ def get(ctx, rd, what, book_id, library_id):
sz = rd.query.get('sz') sz = rd.query.get('sz')
w, h = 60, 80 w, h = 60, 80
if sz is None: if sz is None:
try: if rest:
w, h = map(int, rest.split('_')) try:
except Exception: w, h = map(int, rest.split('_'))
pass except Exception:
pass
elif sz == 'full': elif sz == 'full':
w = h = None w = h = None
elif 'x' in sz: elif 'x' in sz: