From 2d3f92c43debd060bc9ca0b419cc6c0aba9ed92a Mon Sep 17 00:00:00 2001 From: Travis Rivers <travrivers88@gmail.com> Date: Mon, 2 Mar 2020 17:31:15 -0700 Subject: [PATCH] fix validate --- geomagio/webservice/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geomagio/webservice/data.py b/geomagio/webservice/data.py index c85565c2..4a8dfe65 100644 --- a/geomagio/webservice/data.py +++ b/geomagio/webservice/data.py @@ -327,7 +327,7 @@ def validate_query(query): WebServiceException if any parameters are not supported. """ - if not query.endtime: + if type(query.endtime) == str: raise WebServiceException( 'Bad end_time value "%s".' ' Valid values are ISO-8601 timestamps.' % query.endtime) -- GitLab