mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Silence known rdflib_sqlalchemy TypeError warning
This commit is contained in:
@@ -33,6 +33,12 @@ except:
|
|||||||
# See #1860
|
# See #1860
|
||||||
print("Warning: brickschema not available.")
|
print("Warning: brickschema not available.")
|
||||||
|
|
||||||
|
# silence known rdflib_sqlalchemy TypeError warning
|
||||||
|
# see https://github.com/BrickSchema/Brick/issues/513#issuecomment-1558493675
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger("rdflib")
|
||||||
|
logger.setLevel(logging.ERROR)
|
||||||
|
|
||||||
class Brick(blenderbim.core.tool.Brick):
|
class Brick(blenderbim.core.tool.Brick):
|
||||||
@classmethod
|
@classmethod
|
||||||
def add_brick(cls, namespace, brick_class):
|
def add_brick(cls, namespace, brick_class):
|
||||||
|
|||||||
Reference in New Issue
Block a user