Skip to content

Commit

Permalink
#3868 catch KeyError and log it
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 29, 2023
1 parent 5acbde2 commit d9efbd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xpra/net/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ def safe_lookup(config_obj, host):
log("%s.lookup(%s)", config_obj, host, exc_info=True)
log.warn(f"Warning: unable to load SSH host config for {host!r}:")
log.warn(f" {e}")
except KeyError as e:
log("%s.lookup(%s)", config_obj, host, exc_info=True)
log.info(f"paramiko ssh config lookup error for host {host!r}:")
log.info(" %s: %s", type(e), e)
return {}

def ssh_paramiko_connect_to(display_desc):
Expand Down

0 comments on commit d9efbd2

Please sign in to comment.