Skip to content

Commit c17a07f

Browse files
committed
get rid of warnings.warn
1 parent 65dff7f commit c17a07f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

dataretrieval/waterdata/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ def _walk_pages(
586586
curr_url = _next_req_url(resp)
587587
except Exception:
588588
error_text = _error_body(resp)
589-
warnings.warn(f"{error_text}. Data request incomplete.")
590589
logger.error("Request incomplete. %s", error_text)
591590
logger.warning("Request failed for URL: %s. Data download interrupted.", curr_url)
592591
curr_url = None
@@ -952,7 +951,6 @@ def get_stats_data(
952951
next_token = body['next']
953952
except Exception:
954953
error_text = _error_body(resp)
955-
warnings.warn(f"{error_text}. Data request incomplete.")
956954
logger.error("Request incomplete. %s", error_text)
957955
logger.warning("Request failed for URL: %s. Data download interrupted.", resp.url)
958956
next_token = None

0 commit comments

Comments
 (0)