diff --git a/src/pylorax/api/v0.py b/src/pylorax/api/v0.py index 0b240f14..5660af4f 100644 --- a/src/pylorax/api/v0.py +++ b/src/pylorax/api/v0.py @@ -1571,6 +1571,11 @@ def v0_api(api): log.error("(v0_modules_info) %s", str(e)) return jsonify(status=False, errors=[str(e)]), 400 + if not modules: + msg = "one of the requested modules does not exist: %s" % module_names + log.error("(v0_modules_info) %s" % msg) + return jsonify(status=False, errors=[msg]), 400 + return jsonify(modules=modules) @api.route("/api/v0/compose", methods=["POST"])