[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/pwdb/mysql.py
From: |
Pierre-Yves Rofes |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/pwdb/mysql.py |
Date: |
Thu, 27 Oct 2005 10:14:37 -0400 |
Index: sshproxy/SSHproxy/pwdb/mysql.py
diff -u sshproxy/SSHproxy/pwdb/mysql.py:1.5 sshproxy/SSHproxy/pwdb/mysql.py:1.6
--- sshproxy/SSHproxy/pwdb/mysql.py:1.5 Tue Sep 27 13:55:48 2005
+++ sshproxy/SSHproxy/pwdb/mysql.py Thu Oct 27 14:14:36 2005
@@ -334,7 +334,10 @@
""" % (username, key)
logins = db.cursor()
logins.execute(q_access)
- login = logins.fetchone()[0]
+ try:
+ login = logins.fetchone()[0]
+ except TypeError:
+ return None
logins.close()
if login:
self.login = username
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sshproxy-dev] Changes to sshproxy/SSHproxy/pwdb/mysql.py,
Pierre-Yves Rofes <=