From 9250cb6446177c9d78addfabd4b110b384ae4b28 Mon Sep 17 00:00:00 2001 From: jamesvclemence Date: Fri, 23 Jan 2009 17:54:39 +0000 Subject: [PATCH] Fixed command failure if one of a list of targets does not exist --- src/commands/objmanip.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/objmanip.py b/src/commands/objmanip.py index cecbd9300..627ca2eb3 100644 --- a/src/commands/objmanip.py +++ b/src/commands/objmanip.py @@ -344,6 +344,8 @@ def cmd_cpattr(command): # Does target exist? if not tar_obj: session.msg("Target object does not exist: " + tar_string) + # Continue if target does not exist, but give error on this item + continue # If target attribute is not given, use source_attr_string for name if tar_attr_string == '':