Swap to context fail method on error
This commit is contained in:
+1
-3
@@ -29,6 +29,4 @@ async def set_dns_servers(client: SagemcomClient, dns_servers: tuple[IPv4Address
|
||||
)
|
||||
await client.set_value_by_xpath(f"Device/DNS/Relay/Forwardings/Forwarding[@uid={uid}]/Enable", True)
|
||||
except Exception as e:
|
||||
click.echo(e, err=True)
|
||||
raise click.Abort()
|
||||
|
||||
ctx.fail(e)
|
||||
|
||||
Reference in New Issue
Block a user