(hooke_cli.py) Fixed small error catching in do_copylog
authordevicerandom <devnull@localhost>
Thu, 31 Jul 2008 16:31:56 +0000 (16:31 +0000)
committerdevicerandom <devnull@localhost>
Thu, 31 Jul 2008 16:31:56 +0000 (16:31 +0000)
hooke_cli.py

index 3516823938356f23bc7c24cb399264115eedf6d0..460eccdd184b77d90377686e55977a180805d87d 100755 (executable)
@@ -787,8 +787,8 @@ Syntax copylog [directory]
             if len(item.notes)>0:
                 try:
                     shutil.copy(item.path, mydir)
-                except OSError:
-                    print 'OSError. Cannot copy file. Perhaps you gave me a wrong directory?'
+                except (OSError, IOError):
+                    print 'Cannot copy file. '+item.path+' Perhaps you gave me a wrong directory?'
 
 #OUTLET management
 #-----------------