exit if an exception happened

This commit is contained in:
Nico Schottelius 2020-02-06 15:32:48 +01:00
parent aaf0114df1
commit 592b745cea

View file

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