From 18db1904bca83baaa761bf198fd6ec61a8b50a03 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 6 Jan 2016 16:02:18 -0500 Subject: [PATCH] BUG: Need to format message, not ValueError instance --- zipline/lib/adjusted_array.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zipline/lib/adjusted_array.py b/zipline/lib/adjusted_array.py index 7934c0c2..1611300d 100644 --- a/zipline/lib/adjusted_array.py +++ b/zipline/lib/adjusted_array.py @@ -82,7 +82,8 @@ def _normalize_array(data): "not representable as datetime64[ns].\n" "Min Date: %s\n" "Max Date: %s\n" - ) % (data.min(), data.max()) + % (data.min(), data.max()) + ) else: raise TypeError( "Don't know how to construct AdjustedArray "