Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit a34b8d0

Browse files
committed
Silence known rdflib_sqlalchemy TypeError warning
1 parent 37e4f98 commit a34b8d0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/blenderbim/blenderbim/tool/brick.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
# See #1860
3434
print("Warning: brickschema not available.")
3535

36+
# silence known rdflib_sqlalchemy TypeError warning
37+
# see https://github.com/BrickSchema/Brick/issues/513#issuecomment-1558493675
38+
import logging
39+
logger = logging.getLogger("rdflib")
40+
logger.setLevel(logging.ERROR)
41+
3642
class Brick(blenderbim.core.tool.Brick):
3743
@classmethod
3844
def add_brick(cls, namespace, brick_class):

0 commit comments

Comments
 (0)