Fix bug where ifcopenshell express rule validator required a logger with set_state.

This commit is contained in:
Dion Moult
2023-02-20 11:24:23 +11:00
parent ac81169290
commit 147602e107
2 changed files with 10 additions and 6 deletions
@@ -291,7 +291,8 @@ def validate(f, logger, express_rules=False):
filename = None
logger.set_state('type', 'schema')
if hasattr(logger, 'set_state'):
logger.set_state('type', 'schema')
if not isinstance(f, ifcopenshell.file):