multimeric / PandasSchema

A validation library for Pandas data frames using user-friendly schemas
https://multimeric.github.io/PandasSchema/
GNU General Public License v3.0
189 stars 35 forks source link

Wrong Exception inheritance #54

Open Calosha opened 3 years ago

Calosha commented 3 years ago

PanSchError must inherit from Exception instead of BaseException so I could be caught with

except Exception as e:
class PanSchError(Exception):
    """
    Base class for all pandas_schema exceptions
    """
Swanand01 commented 3 years ago

Hi, I would like to take this up please.

multimeric commented 3 years ago

Go for it, thank you!

multimeric commented 3 years ago

Yeah, I wrote that a long time ago and I have no idea why I thought it was a good idea to inherit from BaseException.