bugfix
This commit is contained in:
parent
8972085696
commit
68eff9086b
@ -174,7 +174,10 @@ class WechatGateway(Gateway):
|
|||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}) as resp:
|
}) as resp:
|
||||||
ret = await resp.json()
|
ret = await resp.json()
|
||||||
debug(f'{ret=}')
|
url = ret.get("h5_url")
|
||||||
|
if url is None:
|
||||||
|
e = Exception(f'{ret=} error')
|
||||||
|
raise e
|
||||||
return ret.get("h5_url")
|
return ret.get("h5_url")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{e}, {url=}, {body_str=}, {auth=}')
|
exception(f'{e}, {url=}, {body_str=}, {auth=}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user