vmware/pyvmomi-community-samples

Do not swallow errors!

开放

#11 创建于 2014年5月21日

 (1 条评论) (0 个反应) (0 位负责人)Python (914 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (972 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/create_random_marvel_vms.py#L195

In sample code, don't trap errors coming off of ...

si = connect.SmartConnect(

... instead just expose those to the CLI. We are attempting to make teaching samples here and too thoroughly swallowing or handling errors can make the samples harder to read and understand for programmers who are still learning.

贡献者指南