cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Python: no way to target type of exception in except block

Open pokey opened this issue 1 year ago • 0 comments

In the following code

try:
    pass
except ValueError:
    pass

There is no way to target ValueError. I would argue for either "type" or "value".

pokey avatar Dec 14 '24 19:12 pokey