exit if an exception happened
This commit is contained in:
parent
aaf0114df1
commit
592b745cea
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue