[Checkins] SVN: z3c.extfile/trunk/src/z3c/extfile/hashdir.py return representation of value in exception

Bernd Dorn bernd.dorn at lovelysystems.com
Wed Jan 9 11:09:51 EST 2008


Log message for revision 82773:
  return representation of value in exception

Changed:
  U   z3c.extfile/trunk/src/z3c/extfile/hashdir.py

-=-
Modified: z3c.extfile/trunk/src/z3c/extfile/hashdir.py
===================================================================
--- z3c.extfile/trunk/src/z3c/extfile/hashdir.py	2008-01-09 15:28:07 UTC (rev 82772)
+++ z3c.extfile/trunk/src/z3c/extfile/hashdir.py	2008-01-09 16:09:50 UTC (rev 82773)
@@ -60,7 +60,7 @@
 
     def getPath(self, digest):
         if  type(digest) != StringType or len(digest) != 40:
-            raise ValueError, digest
+            raise ValueError, repr(digest)
         path = os.path.join(self.var, digest)
         if not os.path.isfile(path):
             raise KeyError, digest



More information about the Checkins mailing list