1
0
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:
Marc Bonnici 2017-07-14 18:09:01 +01:00
parent 61a44dd91d
commit 5ef3d7673f

View File

@ -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]