Commit 7dce435e authored by Marco Mariani's avatar Marco Mariani

explicitly raise if recipe parameters are missing

parent f868c19e
...@@ -86,7 +86,7 @@ class Recipe(GenericSlapRecipe, Notify, Callback): ...@@ -86,7 +86,7 @@ class Recipe(GenericSlapRecipe, Notify, Callback):
url = entry.get('url') url = entry.get('url')
if url is None: if url is None:
url = '' raise ValueError('Missing URL parameter for PBS recipe')
# We assume that thanks to sha512 there's no collisions # We assume that thanks to sha512 there's no collisions
url_hash = hashlib.sha512(url).hexdigest() url_hash = hashlib.sha512(url).hexdigest()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment