From dade9048ec2927fc684f4cba06de5210ff4757ef Mon Sep 17 00:00:00 2001 From: devicerandom Date: Thu, 31 Jul 2008 16:31:56 +0000 Subject: [PATCH] (hooke_cli.py) Fixed small error catching in do_copylog --- hooke_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 #----------------- -- 2.26.2