1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-02-03 15:59:30 +00:00

Update ssh.py

Fixed linting errors
This commit is contained in:
Jason Hall 2025-09-29 20:16:45 -04:00 committed by GitHub
parent ea8e525715
commit 542ca73207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,9 @@ class SSHConnection(Connection):
proxy.credential.password.get_secret_value()
)
try:
return open_tunnel(ssh_address_or_host=proxy._target, ssh_port=proxy.port, **tunnel_kwargs)
return open_tunnel(
ssh_address_or_host=proxy._target, ssh_port=proxy.port, **tunnel_kwargs
)
except BaseSSHTunnelForwarderError as scrape_proxy_error:
log.bind(device=self.device.name, proxy=proxy.name).error(