1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

Parser: Fixes raising duplicate entry error.

This commit is contained in:
Marc Bonnici 2017-07-25 15:37:56 +01:00
parent af49c5020f
commit c455ad524f

View File

@ -186,7 +186,7 @@ def pop_aliased_param(cfg_point, d, default=None):
aliases = [cfg_point.name] + cfg_point.aliases
alias_map = [a for a in aliases if a in d]
if len(alias_map) > 1:
raise ConfigError(DUPLICATE_ENTRY_ERROR.format(aliases))
raise ConfigError('Duplicate entry: {}'.format(aliases))
elif alias_map:
return d.pop(alias_map[0])
else: