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

[minion-cvs] Fix crash on directory read



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv24602/lib/mixminion

Modified Files:
	ServerInfo.py 
Log Message:
Fix crash on directory read

Index: ServerInfo.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ServerInfo.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- ServerInfo.py	7 Jan 2004 02:50:08 -0000	1.72
+++ ServerInfo.py	7 Jan 2004 20:44:52 -0000	1.73
@@ -377,7 +377,8 @@
     def supportsPacketVersion(self):
         """Return true iff we can build packets in a format this server
            recognizes."""
-        formatStr = self['Server'].get("Packet-Versions", "0.3")
+        formatStr = self['Server'].get("Packet-Versions")
+        if formatStr == None: formatStr = "0.3"
         formats = [ s.strip() for s in formatStr.split(",") ]
         return mixminion.Packet.PACKET_VERSION in formats