Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Use the callback_error() in the Functional API: https://nrel.github.io/EnergyPlus/api/python/func.html#func.Functional.callback_error

Try this:

def error_handler(severity: int, message: bytes) -> None:
    print(f"{severity=}: {message}")

api.functional.callback_error(state, error_handler)