@@ -120,10 +120,12 @@ def get_geo_signal_combos(data_source, api_key):
120
120
121
121
response = Epidata .covidcast_meta ()
122
122
123
+ # pylint: disable=R1720
123
124
if response ["result" ] != 1 :
124
125
# Something failed in the API and we did not get real metadata
125
126
raise RuntimeError ("Error when fetching metadata from the API" , response ["message" ])
126
127
128
+ # pylint: disable=I0021
127
129
else :
128
130
meta = pd .DataFrame .from_dict (response ["epidata" ])
129
131
# note: this will fail for signals with weekly data, but currently not supported for validation
@@ -187,17 +189,19 @@ def fetch_api_reference(data_source, start_date, end_date, geo_type, signal_type
187
189
# Something failed in the API and we did not get real signal data
188
190
raise RuntimeError ("Error when fetching signal data from the API" , response ["message" ])
189
191
192
+ # pylint: disable=E1124
190
193
if response ["message" ] not in {"success" , "no results" }:
194
+ # pylint: disable=E1123
191
195
warnings .warn (
192
196
"Problem obtaining data" ,
197
+ # pylint: disable=E0602
193
198
RuntimeWarning ,
194
199
message = response ["message" ],
195
200
data_source = data_source ,
196
201
signal = signal ,
197
202
time_value = params ["time_values" ],
198
203
geo_type = geo_type ,
199
204
)
200
- logger .info (f"Trying calling covidcast again" )
201
205
response = Epidata .covidcast (
202
206
data_source ,
203
207
signal_type ,
0 commit comments