Fix crash as soon as first cl or dl token was acquired

This commit is contained in:
Joscha
2021-05-22 20:25:58 +00:00
parent 8fad8edc1e
commit 662191eca9
2 changed files with 8 additions and 6 deletions

View File

@ -117,12 +117,11 @@ def main() -> None:
try:
pferd = Pferd(config)
asyncio.run(pferd.run())
except ConfigOptionError as e:
log.unlock()
log.error(str(e))
exit(1)
try:
asyncio.run(pferd.run())
except KeyboardInterrupt:
log.unlock()
log.explain_topic("Interrupted, exiting immediately")