Skip to content

Commit d5b8ab2

Browse files
authored
Fix issue when non existing package is specified (#373)
This will make sure a proper error message is shown.
1 parent b784346 commit d5b8ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alibuild_helpers/utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def __call__(self):
151151

152152
def parseRecipe(reader):
153153
assert(reader.__call__)
154+
err, spec, recipe = (None, None, None)
154155
try:
155156
d = reader()
156-
err, spec, recipe = (None, None, None)
157157
header,recipe = d.split("---", 1)
158158
spec = yaml.safe_load(header)
159159
validateSpec(spec)

0 commit comments

Comments
 (0)