mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Improve PFERD error handling
This commit is contained in:
@ -115,7 +115,12 @@ def main() -> None:
|
||||
dump_config(args, config)
|
||||
exit()
|
||||
|
||||
pferd = Pferd(config)
|
||||
try:
|
||||
pferd = Pferd(config)
|
||||
except ConfigOptionError as e:
|
||||
log.error(str(e))
|
||||
exit(1)
|
||||
|
||||
try:
|
||||
asyncio.run(pferd.run())
|
||||
except KeyboardInterrupt:
|
||||
|
Reference in New Issue
Block a user