Better error message

This commit is contained in:
Kovid Goyal 2021-02-05 09:29:56 +05:30
parent 0e483f81ac
commit 1ef326e220
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -111,6 +111,7 @@ def load_helpers(self):
cid = kw.setdefault('i', 1) cid = kw.setdefault('i', 1)
self.ae('OK', pl(payload, **kw)) self.ae('OK', pl(payload, **kw))
img = g.image_for_client_id(cid) img = g.image_for_client_id(cid)
self.assertIsNotNone(img, f'No image with id {cid} found')
self.ae(img['client_id'], cid) self.ae(img['client_id'], cid)
self.ae(img['data'], data) self.ae(img['data'], data)
if 's' in kw: if 's' in kw: