Both these functions use thepdd_wrapper_class.ENgeterror() function to get the error message, but pdd_wrapper_class is a type so we get an AttributeError that is silenced because the Error function is supposed to always raise an Exception and in the case of the function in epanettools there is a try-except block that catches this exception and raises another one.
In here I have 2 new tests that catch these bugs and a possible fix.
Both these functions use the
pdd_wrapper_class.ENgeterror()
function to get the error message, butpdd_wrapper_class
is a type so we get anAttributeError
that is silenced because theError
function is supposed to always raise anException
and in the case of the function in epanettools there is a try-except block that catches this exception and raises another one.In here I have 2 new tests that catch these bugs and a possible fix.