1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python: lint: fix pylint R1720 unnecessary "raise" after "else"

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Rob van der Linde 2024-03-28 16:15:06 +13:00 committed by Andrew Bartlett
parent 3dd49b9f56
commit bcae4c2dbe
3 changed files with 6 additions and 6 deletions

View File

@ -437,7 +437,7 @@ class cmd_domain_auth_policy_delete(Command):
if not force:
raise CommandError(
f"{e}\nTry --force to delete protected authentication policies.")
else:
raise CommandError(e)
# Authentication policy deleted successfully.

View File

@ -378,7 +378,7 @@ class cmd_domain_auth_silo_delete(Command):
if not force:
raise CommandError(
f"{e}\nTry --force to delete protected authentication silos.")
else:
raise CommandError(e)
# Authentication silo deleted successfully.

View File

@ -244,7 +244,7 @@ class cmd_domain_claim_claim_type_delete(Command):
if not force:
raise CommandError(
f"{e}\nTry --force to delete protected claim types.")
else:
raise CommandError(e)
# Claim type deleted successfully.