Skip to content

Cannot catch value error as Exception even though ValueError is a subclass of Exception #737

@yfinkelstein

Description

@yfinkelstein

Some codon script throws a value exception.
if I have try with

except ValueError as e:
    print (f"ValueError: {e}")

it prints the error

but if I have

exception Exception as e:
  print (f"Exception: {e}")

it does not print anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions