Skip to content

Commit bb3b72d

Browse files
committed
wrong type
1 parent 7a6ce7a commit bb3b72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas/geometry/curves/nurbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __from_data__(cls, data):
107107
)
108108

109109
def __new__(cls, *args, **kwargs):
110-
if cls is Curve:
110+
if cls is NurbsCurve:
111111
raise TypeError("Making an instance of `NurbsCurve` using `NurbsCurve()` is not allowed. Please use one of the factory methods instead (`NurbsCurve.from_...`)")
112112
return object.__new__(cls)
113113

0 commit comments

Comments
 (0)