vmware/pyvmomi-community-samples

Do not swallow errors!

Open

#11 创建于 2014年5月21日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Python (972 star) (914 fork)batch import
enhancementhelp wanted

描述

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.

贡献者指南