mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where ifcopenshell express rule validator required a logger with set_state.
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user