diff options
Diffstat (limited to 'pym/portage/exception.py')
-rw-r--r-- | pym/portage/exception.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/exception.py b/pym/portage/exception.py index b289b6285..9564af98a 100644 --- a/pym/portage/exception.py +++ b/pym/portage/exception.py @@ -52,6 +52,9 @@ class ParseError(PortageException): class InvalidData(PortageException): """An incorrect formatting was passed instead of the expected one""" + def __init__(self, value, category=None): + PortageException.__init__(self, value) + self.category = category class InvalidDataType(PortageException): """An incorrect type was passed instead of the expected one""" |