generic_platform: fix typo
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 8 Feb 2013 16:43:04 +0000 (17:43 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 8 Feb 2013 16:43:04 +0000 (17:43 +0100)
mibuild/generic_platform.py

index 387755288da0fe8abc2833691468d1f2fdb31c5e..8e2496414d3c3d768838a07fd0830f23a8fef841 100644 (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