Closed rougeth closed 7 years ago
Hi,
close session and loop
By this do you mean, restart the app.run()
session? Just making sure. Thanks!
@Kalaborative I think that he wants something like use .close
method from asyncion.Event and aiohttp.Session. I wrote this code right now in bottery.app
:
def close(self):
logger.debug('Closing session and loop events')
self._session.close()
self.loop.close()
Yep, that is it @guidiego, session
without _
and calling this new method on bottery.cli.run
after catching KeyboardInterrupt exception.
@Kalaborative just remember to test it :)
@rougeth could I handle that one? Or prefer waiting a couple of days?
@guidiego nooo, go ahead my friend :)
https://github.com/rougeth/bottery/blob/master/bottery/cli.py#L52-L57