[Zodb-checkins] SVN: ZODB/trunk/test.py os.listdir() now prints errors on stdout

Dmitry Vasiliev dima at hlabs.spb.ru
Wed Sep 29 05:53:33 EDT 2004


Log message for revision 27704:
  os.listdir() now prints errors on stdout
  


Changed:
  U   ZODB/trunk/test.py


-=-
Modified: ZODB/trunk/test.py
===================================================================
--- ZODB/trunk/test.py	2004-09-28 18:47:03 UTC (rev 27703)
+++ ZODB/trunk/test.py	2004-09-29 09:53:33 UTC (rev 27704)
@@ -448,7 +448,8 @@
     """
     try:
         names = os.listdir(top)
-    except os.error:
+    except os.error, why:
+        print "Error listing %r: %s" % (top, why)
         return
     func(arg, top, names)
     exceptions = ('.', '..')



More information about the Zodb-checkins mailing list