gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 53808 - in gump/trunk/python/gump: threads utils
Date Tue, 05 Oct 2004 16:48:05 GMT
Author: ajack
Date: Tue Oct  5 09:48:00 2004
New Revision: 53808

Modified:
   gump/trunk/python/gump/threads/tools.py
   gump/trunk/python/gump/utils/sync.py
Log:
Third attempt at finding exactly which file is causing sync() grief.
I'm pretty sure it is the 'resume.xml' (the 'e').
Trouble is, what to do about it? What character set are file systems
working in?

Modified: gump/trunk/python/gump/threads/tools.py
==============================================================================
--- gump/trunk/python/gump/threads/tools.py	(original)
+++ gump/trunk/python/gump/threads/tools.py	Tue Oct  5 09:48:00 2004
@@ -104,6 +104,6 @@
         # Try to acquire every count
         for i in range(self.count):    
             self.done.acquire() 
-            log.debug('Completed #' + `i` + '.')    
+            log.debug('Completed. Thread #' + `i` + '.')    
             
         log.debug('All threads completed.')    

Modified: gump/trunk/python/gump/utils/sync.py
==============================================================================
--- gump/trunk/python/gump/utils/sync.py	(original)
+++ gump/trunk/python/gump/utils/sync.py	Tue Oct  5 09:48:00 2004
@@ -180,10 +180,10 @@
                 srcname = os.path.join(src, name)
                 dstname = os.path.join(dst, name)
             
-            except Exception, why:
-                message = "Can't copy [%s] to [%s]: [%s]" % (`src`, `dst`, str(why))
+            except UnicodeDecodeError, why:
+                message = "Unicode Error. Can't copy [%s] in [%s] to [%s]: [%s]" % (`name`,
`src`, `dst`, str(why))
                 log.exception(message)
-                raise IOError, message
+                raise UnicodeDecodeError, message
                 
             try:
                 if symlinks and os.path.islink(srcname):

Mime
View raw message