Commit 6ce8b8cc authored by Benjamin Winger's avatar Benjamin Winger

Removed error catching code from pybuild_validate, as it is not top-level

parent 5e6cf14f
......@@ -536,16 +536,11 @@ def pybuild_validate(file_name):
# Verify that pybuild is valid python
import py_compile
py_compile.compile(file_name)
py_compile.compile(file_name, doraise=True)
# Verify fields of pybuild
try:
mod = load_file(file_name)
mod.validate()
except Exception as e:
err(str(e))
err("Unable to load mod {}!".format(file_name))
return
mod = load_file(file_name)
mod.validate()
def pybuild_manifest(file_name):
......
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