generic_platform: fix typo

This commit is contained in:
Sebastien Bourdeauducq 2013-02-08 17:43:04 +01:00
parent 78f8ec1a53
commit fef9d0fc78
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def _lookup(description, name, number):
for resource in description:
if resource[0] == name and (number is None or resource[1] == number):
return resource
return ConstraintError("Resource not found")
raise ConstraintError("Resource not found")
def _resource_type(resource):
t = None