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:
parent
3dd49b9f56
commit
bcae4c2dbe
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user