Marco Ricci commited on 2025-12-27 17:10:07
Zeige 1 geänderte Dateien mit 2 Einfügungen und 7 Löschungen.
| ... | ... |
@@ -873,9 +873,7 @@ def _load_key_optimistically( |
| 873 | 873 |
payload, |
| 874 | 874 |
response_code=_types.SSH_AGENT.SUCCESS, |
| 875 | 875 |
) |
| 876 |
- except ( |
|
| 877 |
- ssh_agent.SSHAgentFailedError |
|
| 878 |
- ): # pragma: no cover [external] |
|
| 876 |
+ except ssh_agent.SSHAgentFailedError: # pragma: no cover [external] |
|
| 879 | 877 |
# Pageant can fail to accept a key for two separate |
| 880 | 878 |
# reasons: |
| 881 | 879 |
# |
| ... | ... |
@@ -894,10 +892,7 @@ def _load_key_optimistically( |
| 894 | 892 |
and key_struct.public_key_data in current_loaded_keys |
| 895 | 893 |
): |
| 896 | 894 |
pass |
| 897 |
- elif ( |
|
| 898 |
- agent_type == data.KnownSSHAgent.UNIXPageant |
|
| 899 |
- and not isolated |
|
| 900 |
- ): |
|
| 895 |
+ elif agent_type == data.KnownSSHAgent.UNIXPageant and not isolated: |
|
| 901 | 896 |
request_code, payload = _prepare_payload( |
| 902 | 897 |
private_key_data, isolated=True |
| 903 | 898 |
) |
| 904 | 899 |