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:
Scott Sanderson
2015-09-18 16:17:36 -04:00
parent 85cacdf356
commit 8eb09f70d7
+1 -1
View File
@@ -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()