Skip to content
Snippets Groups Projects
Commit 24efad73 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

pylint: Fix warning 'unnecessary "else" after "return"'

Recent pylint versions warn against the use of an 'else' in a
'try-except' block if using a 'return' on the 'except' part is is the
idom used by ansible-freeipa when retrieving IPA data objects.

This change removes the usage of the 'else:' in such cases, and modify
the templates so that new modules do not have the same issue in the
future.
parent fd1352ad
No related branches found
No related tags found
Loading
Showing
with 20 additions and 40 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment