gump-commits mailing list archives

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

Modified:
   gump/trunk/python/gump/utils/sync.py
Log:
Try again to detect & log Unicode error (in sync).

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:23:48 2004
@@ -179,7 +179,13 @@
             try:    
                 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))
+                log.exception(message)
+                raise IOError, message
                 
+            try:
                 if symlinks and os.path.islink(srcname):
                     linkto = os.readlink(srcname)
                     os.symlink(linkto, dstname)

Mime
View raw message