summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-08-28 18:22:31 -0700
committerRobey Pointer <robey@lag.net>2006-08-28 18:22:31 -0700
commitb23079b1350c45e46f77851b86c6b518da857a43 (patch)
tree135078bb50b0bca4ff68bc63e6b85efd09a945ef
parent2b8738d3ce4cdee85c02569927427676465b5e3c (diff)
[project @ robey@lag.net-20060829012231-328fee7de77036be]
fix a couple of pcheck warnings
-rw-r--r--paramiko/transport.py3
-rw-r--r--paramiko/win_pageant.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 738caef7..02f67cb8 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 5c497299..07de48c4 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():