Skip to content

Commit

Permalink
Fix issue when non existing package is specified (#373)
Browse files Browse the repository at this point in the history
This will make sure a proper error message is shown.
  • Loading branch information
ktf authored Oct 19, 2016
1 parent b784346 commit d5b8ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibuild_helpers/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def __call__(self):

def parseRecipe(reader):
assert(reader.__call__)
err, spec, recipe = (None, None, None)
try:
d = reader()
err, spec, recipe = (None, None, None)
header,recipe = d.split("---", 1)
spec = yaml.safe_load(header)
validateSpec(spec)
Expand Down

0 comments on commit d5b8ab2

Please sign in to comment.