notice errors when an async snapd operation fails
This commit is contained in:
parent
fa351ed7bc
commit
6e64c6b8b5
|
@ -166,4 +166,6 @@ async def post_and_wait(client, meth, *args, **kw):
|
|||
result = await client.v2.changes[change_id].GET()
|
||||
if result.status == TaskStatus.DONE:
|
||||
return result.data
|
||||
elif result.status == TaskStatus.ERROR:
|
||||
raise aiohttp.ClientError(result.err)
|
||||
await asyncio.sleep(0.1)
|
||||
|
|
Loading…
Reference in New Issue