Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy issue: VimFault is not derived from BaseException #1086

Open
jceresini opened this issue Aug 2, 2024 · 0 comments
Open

mypy issue: VimFault is not derived from BaseException #1086

jceresini opened this issue Aug 2, 2024 · 0 comments
Labels

Comments

@jceresini
Copy link

Describe the bug

When we run some of our code through mypy, it reports the following issue:

error: Exception type must be derived from BaseException (or be a tuple of exception classes)  [misc]

Here's a simplified example:

from pyVmomi import vim

try:
    pass
except vim.fault.VimFault:
    pass

Reproduction steps

  1. Write code that tries to catch vim.fault.VimFault exceptions
  2. Run mypy against the code

Expected behavior

No mypy errors

Additional context

pyvmomi==8.0.3.0.1
mypy==1.11.1
Python 3.10.6

@jceresini jceresini added the bug label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant