From dff398a5afc7df338d0ca003de86e24c9c79c716 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