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>
This commit is contained in:
Christian Heimes
2018-11-09 11:13:38 +01:00
parent 8944458d3c
commit 85286beb5b
9 changed files with 18 additions and 6 deletions

View File

@@ -66,6 +66,8 @@ class CLITestContext:
return False
self.exception = exc_value
return True
else:
return None
def test_ipa_help():