From b23079b1350c45e46f77851b86c6b518da857a43 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 28 Aug 2006 18:22:31 -0700 Subject: [PATCH] [project @ robey@lag.net-20060829012231-328fee7de77036be] fix a couple of pcheck warnings --- paramiko/transport.py | 3 ++- paramiko/win_pageant.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/paramiko/transport.py b/paramiko/transport.py index 738caef..02f67cb 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -494,7 +494,8 @@ class Transport (threading.Thread): try: return self.server_key_dict[self.host_key_type] except KeyError: - return None + pass + return None def load_server_moduli(filename=None): """ diff --git a/paramiko/win_pageant.py b/paramiko/win_pageant.py index 5c49729..07de48c 100644 --- a/paramiko/win_pageant.py +++ b/paramiko/win_pageant.py @@ -47,7 +47,8 @@ def _get_pageant_window_object(): hwnd = win32ui.FindWindow('Pageant', 'Pageant') return hwnd except win32ui.error: - return None + pass + return None def can_talk_to_agent():