74c8ac9 Address inconsistent-return-statements

Authored and Committed by cheimes 5 years ago
    Address inconsistent-return-statements
    
    Pylint warns about inconsistent return statements when some paths of a
    function return None implicitly. Make all implicit returns either
    explicit or raise a proper exception.
    
    See: https://pagure.io/freeipa/issue/7758
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+1 -0
file modified
+1 -0