Deprecation warning in Result class not shown when error is raised

The DeprecationWarning in the Result class is not shown when an error is raised within the __init__ method.