From a15e1055a41b4a9fb036b656c92146e9f1b2ae94 Mon Sep 17 00:00:00 2001 From: mattrijk Date: Tue, 12 Jan 2016 02:04:38 +0000 Subject: [PATCH] ENH issue#11977 Added ValueError(year is out of range) to Timestamp parsing. --- pandas/tslib.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx index 49ffdcbf29414..68be3e7562875 100644 --- a/pandas/tslib.pyx +++ b/pandas/tslib.pyx @@ -1360,7 +1360,7 @@ cpdef convert_str_to_tsobject(object ts, object tz, object unit, try: ts = parse_datetime_string(ts, dayfirst=dayfirst, yearfirst=yearfirst) except Exception: - raise ValueError + raise ValueError("year is out of range") return convert_to_tsobject(ts, tz, unit)