Cover Dispatcher.run

This commit is contained in:
jrootjunior 2019-12-11 15:49:42 +02:00
parent 90a035ed29
commit acbe1f81b6
2 changed files with 7 additions and 4 deletions

View file

@ -153,5 +153,6 @@ class Dispatcher(Router):
"""
try:
return asyncio.run(self._run_polling(*bots, **kwargs))
except (KeyboardInterrupt, SystemExit): # Allow to graceful shutdown
except (KeyboardInterrupt, SystemExit): # pragma: no cover
# Allow to graceful shutdown
pass