exit if an exception happened

This commit is contained in:
Nico Schottelius 2020-02-06 15:32:48 +01:00
parent aaf0114df1
commit 592b745cea
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ if __name__ == '__main__':
main(arguments)
except UncloudException as err:
log.error(err)
sys.exit(1)
# except ConnectionFailedError as err:
# log.error('Cannot connect to etcd: {}'.format(err))
except Exception as err: