vmware / vmware/pyvmomi

pyVim.connect module can raise exception of type Exception

Open
#453 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

because it raise exceptions of type Exception
these exceptions can't be caught in a same manner - can catch other things as well
for example:

if supportedVersion is None:
    raise Exception("%s:%s is not a VIM server" % (host, port)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pyVim.connect module and the supportedVersion check shown in the issue. Review how callers currently catch connection failures and identify the intended specific exception behavior. Done means the module no longer raises the generic Exception for this case and the relevant failure remains catchable without catching unrelated errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.