hotssh r63 - trunk/hotssh



Author: walters
Date: Fri Dec 19 03:30:54 2008
New Revision: 63
URL: http://svn.gnome.org/viewvc/hotssh?rev=63&view=rev

Log:
Don't bomb out if we have no known hosts

Modified:
   trunk/hotssh/sshwindow.py

Modified: trunk/hotssh/sshwindow.py
==============================================================================
--- trunk/hotssh/sshwindow.py	(original)
+++ trunk/hotssh/sshwindow.py	Fri Dec 19 03:30:54 2008
@@ -231,6 +231,8 @@
         if ts_size is not None and self.__hostcache_ts_size != ts_size:
             self.__hostcache = self.__read_hosts()
             self.__hostcache_ts_size = ts_size
+        else:
+            return []
         return self.__hostcache.iterkeys()
 
     def __force_host_read(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]