Skip to content

Commit

Permalink
listofsettings allways an array, test for length of array
Browse files Browse the repository at this point in the history
  • Loading branch information
wilke committed Aug 5, 2016
1 parent a6a3d33 commit fa1cb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Tools/xmlchange
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ formatter_class=argparse.ArgumentDefaultsHelpFormatter
def xmlchange(caseroot, listofsettings=None, xmlfile=None, xmlid=None, xmlval=None, subgroup=None,
append=None, noecho=False, warn=None, force=False):
with Case(caseroot, read_only=False) as case:
if listofsettings:
if len(listofsettings):
logger.warning("List of attributes to change: %s" , listofsettings)

# Error handling, exit with grace if xmlval or equal sign is missing. Check first before changing any attributes
Expand Down

0 comments on commit fa1cb49

Please sign in to comment.