mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-09 11:19:23 +08:00
BUG: Don't crash when raising UnsupportedDataType.
Before this was raising a KeyError on failure to format the message properly.
This commit is contained in:
@@ -444,5 +444,5 @@ class CustomFactor(RequiredWindowLengthMixin, CustomTermMixin, Factor):
|
|||||||
|
|
||||||
def _validate(self):
|
def _validate(self):
|
||||||
if self.dtype != float64:
|
if self.dtype != float64:
|
||||||
raise UnsupportedDataType(self.dtype)
|
raise UnsupportedDataType(dtype=self.dtype)
|
||||||
return super(CustomFactor, self)._validate()
|
return super(CustomFactor, self)._validate()
|
||||||
|
|||||||
Reference in New Issue
Block a user