Skip to content

Commit c9cc054

Browse files
committed
fix potential error
1 parent 2a88f7d commit c9cc054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

biosteam/_unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def __init_subclass__(cls,
251251
bst.units.__dict__[name] = cls
252252
if name not in bst.__dict__:
253253
bst.__dict__[name] = cls
254-
if hasattr(cls, '_finalize_doc'):
254+
if hasattr(cls, '_finalize_doc') and cls.__doc__:
255255
cls._finalize_doc()
256256

257257
### Abstract Attributes ###

0 commit comments

Comments
 (0)