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,8 +437,8 @@ 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)
|
||||
|
||||
raise CommandError(e)
|
||||
|
||||
# Authentication policy deleted successfully.
|
||||
print(f"Deleted authentication policy: {name}", file=self.outf)
|
||||
|
@ -378,8 +378,8 @@ 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)
|
||||
|
||||
raise CommandError(e)
|
||||
|
||||
# Authentication silo deleted successfully.
|
||||
print(f"Deleted authentication silo: {name}", file=self.outf)
|
||||
|
@ -244,8 +244,8 @@ 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)
|
||||
|
||||
raise CommandError(e)
|
||||
|
||||
# Claim type deleted successfully.
|
||||
print(f"Deleted claim type: {name}", file=self.outf)
|
||||
|
Loading…
Reference in New Issue
Block a user