mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-11-04 14:42:49 +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