mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
Getters: Fixes raising error instead of returning.
This commit is contained in:
parent
61a44dd91d
commit
5ef3d7673f
@ -67,7 +67,7 @@ def get_generic_resource(resource, files):
|
||||
return None
|
||||
if len(matches) > 1:
|
||||
msg = 'Multiple matches for {}: {}'
|
||||
return ResourceError(msg.format(resource, matches))
|
||||
raise ResourceError(msg.format(resource, matches))
|
||||
return matches[0]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user