From: devicerandom Date: Thu, 31 Jul 2008 16:31:56 +0000 (+0000) Subject: (hooke_cli.py) Fixed small error catching in do_copylog X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dff398a5afc7df338d0ca003de86e24c9c79c716;p=hooke.git (hooke_cli.py) Fixed small error catching in do_copylog --- diff --git a/hooke_cli.py b/hooke_cli.py index 3516823..460eccd 100755 --- a/hooke_cli.py +++ b/hooke_cli.py @@ -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 #-----------------