handle errors returned to __all__ rather than a field