Skip to content

Recent pylint complains about raising a general Exception #4858

@billsacks

Description

@billsacks

In trying to update to the latest version of pylint (#4856 ), in addition to the issues mentioned in #4857 , I got one other error:

************* Module CIME.XML.tests
CIME/XML/tests.py:56:12: W0719: Raising too general exception: Exception (broad-exception-raised)

We should either raise a more specific exception or bypass this check here. @jasonb5 it looks like you added this. Do you have any insight into whether it would make sense to raise a more specific exception here?

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