diff options
Diffstat (limited to 'ogclient')
-rwxr-xr-x | ogclient | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -88,9 +88,12 @@ def main(): if args.debug: logging.getLogger().setLevel('DEBUG') - client = ogClient(config=CONFIG) - client.connect() - client.run() + try: + client = ogClient(config=CONFIG) + client.connect() + client.run() + except Exception as e: + logging.critical(e) if __name__ == "__main__": main() |