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

[minion-cvs] Resolve minor XXXX



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.seul.org:/tmp/cvs-serv9086/lib/mixminion

Modified Files:
	PacketHandler.py 
Log Message:
Resolve minor XXXX

Index: PacketHandler.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/PacketHandler.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- PacketHandler.py	22 Nov 2002 21:12:05 -0000	1.9
+++ PacketHandler.py	2 Dec 2002 03:24:46 -0000	1.10
@@ -31,14 +31,14 @@
            provided for each private key.
         """
         try:
-            # Check whether we have a key or a tuple of keys.
+            # Check whether we have a key or a sequence of keys.
             _ = privatekey[0]
             assert len(hashlog) == len(privatekey)
             
             self.privatekey = privatekey
             self.hashlog = hashlog
-        except:
-	    # XXXX Don't do except:; name an exception.
+        except TypeError, _:
+	    # Privatekey must not be subscriptable; we have only one.
             self.privatekey = (privatekey, )
             self.hashlog = (hashlog, )