We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e019f40 commit 90deabcCopy full SHA for 90deabc
1 file changed
dms_datastore/download_nwis.py
@@ -279,13 +279,7 @@ def download_station(
279
else:
280
# We know download code was success and file is big enough to test.
281
# The length threshold is conservative so could still be empty or bogus
282
- # Todo get rid of this
283
- with open(f"temp_out_{attempt}_{int(param):05}.txt", "w") as fl:
284
- fl.write(station_html)
285
- if (
286
- "No sites found matching" in station_html
287
- or '"timeSeries":[]' in station_html
288
- ):
+ if "No sites found matching" in station_html or "\"timeSeries\":[]" in station_html:
289
found = False
290
logger.debug(
291
f"Based on typical indicators, attempt yielded no data for vari {int(param):05}.txt"
0 commit comments