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-Tag: 0.9.0~81 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dade9048ec2927fc684f4cba06de5210ff4757ef;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 #-----------------