From 1499051df734dc242eeef5f9e239fcbefa1ef9b4 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 6 Jan 2016 15:26:18 -0500 Subject: [PATCH] BUG: TypeError message had only str of numpy.dtype class We want to use the dtype of the data that was passed in. --- zipline/lib/adjusted_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/lib/adjusted_array.py b/zipline/lib/adjusted_array.py index 760218f2..7934c0c2 100644 --- a/zipline/lib/adjusted_array.py +++ b/zipline/lib/adjusted_array.py @@ -86,7 +86,7 @@ def _normalize_array(data): else: raise TypeError( "Don't know how to construct AdjustedArray " - "on data of type %s." % dtype + "on data of type %s." % data_dtype )