diff --git a/zipline/modelling/factor/factor.py b/zipline/modelling/factor/factor.py index c09ac19d..b8eb0ca1 100644 --- a/zipline/modelling/factor/factor.py +++ b/zipline/modelling/factor/factor.py @@ -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()