summaryrefslogtreecommitdiffstats
path: root/ogclient
diff options
context:
space:
mode:
Diffstat (limited to 'ogclient')
-rwxr-xr-xogclient9
1 files changed, 6 insertions, 3 deletions
diff --git a/ogclient b/ogclient
index 8798ed6..a83b9ed 100755
--- a/ogclient
+++ b/ogclient
@@ -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()