mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-28 09:11:03 +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):
|
||||
if self.dtype != float64:
|
||||
raise UnsupportedDataType(self.dtype)
|
||||
raise UnsupportedDataType(dtype=self.dtype)
|
||||
return super(CustomFactor, self)._validate()
|
||||
|
||||
Reference in New Issue
Block a user