[issue32528] Change base class for futures.CancelledError

Марк Коренберг report at bugs.python.org
Thu Jan 11 03:52:28 EST 2018


Марк Коренберг <socketpair at gmail.com> added the comment:

@gvanrossum

More real code:

async def xxxx():
    while True:
        try:
            result = await download()
            handle_result(result)
        except Exception as e:
            log.warning('Fail..%r', e)
        await asyncio.sleep()


Why sucha a code is fault ?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32528>
_______________________________________


More information about the Python-bugs-list mailing list