From 224515c7d6c973ae6eaaf11727717d0782f4c413 Mon Sep 17 00:00:00 2001 From: Scott Black Date: Thu, 23 Jan 2020 15:05:59 -0700 Subject: [PATCH] fix sites parameter check in get_stats --- dataretrieval/nwis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataretrieval/nwis.py b/dataretrieval/nwis.py index 30575f7..8e2c7f8 100644 --- a/dataretrieval/nwis.py +++ b/dataretrieval/nwis.py @@ -152,7 +152,7 @@ def get_stats(**kwargs): TODO: fix date parsing """ - if sites not in kwargs: + if 'sites' not in kwargs: raise TypeError('Query must specify a site or list of sites') query = query_waterservices('stat', **kwargs)