@@ -120,10 +120,12 @@ def get_geo_signal_combos(data_source, api_key):
120120
121121 response = Epidata .covidcast_meta ()
122122
123+ # pylint: disable=R1720
123124 if response ["result" ] != 1 :
124125 # Something failed in the API and we did not get real metadata
125126 raise RuntimeError ("Error when fetching metadata from the API" , response ["message" ])
126127
128+ # pylint: disable=I0021
127129 else :
128130 meta = pd .DataFrame .from_dict (response ["epidata" ])
129131 # 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
187189 # Something failed in the API and we did not get real signal data
188190 raise RuntimeError ("Error when fetching signal data from the API" , response ["message" ])
189191
192+ # pylint: disable=E1124
190193 if response ["message" ] not in {"success" , "no results" }:
194+ # pylint: disable=E1123
191195 warnings .warn (
192196 "Problem obtaining data" ,
197+ # pylint: disable=E0602
193198 RuntimeWarning ,
194199 message = response ["message" ],
195200 data_source = data_source ,
196201 signal = signal ,
197202 time_value = params ["time_values" ],
198203 geo_type = geo_type ,
199204 )
200- logger .info (f"Trying calling covidcast again" )
201205 response = Epidata .covidcast (
202206 data_source ,
203207 signal_type ,
0 commit comments