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.

貢獻者指南