@@ -162,7 +162,7 @@ def process_page(self):
162162 # If they disagree on number of matches, the scraper will not get
163163 # the data correctly so emit a warning and skip this pdf.
164164 if not (len (votes_mt ) == len (votes_s ) == len (votes_id )):
165- self .logger .warn (
165+ self .logger .warning (
166166 f"\n Could not accurately parse votes for "
167167 f"{ self .source .url } \n "
168168 f"len(votes_mt):{ len (votes_mt )} \n "
@@ -184,7 +184,7 @@ def process_page(self):
184184 def parse_match (self , match , index ):
185185 bill_id = self .get_bill_id (index )
186186 if not bill_id :
187- self .logger .warn (
187+ self .logger .warning (
188188 f"No valid bill id found preceding vote lines in { self .source .url } "
189189 )
190190 return {}
@@ -224,7 +224,7 @@ def parse_match(self, match, index):
224224 if motion_text :
225225 motion_text = motion_text .group (1 )
226226 else :
227- self .logger .warn (
227+ self .logger .warning (
228228 f"No valid motion text found preceding vote lines in { self .source } "
229229 )
230230 return
@@ -239,7 +239,7 @@ def parse_match(self, match, index):
239239 break
240240
241241 if not vote_classification :
242- self .logger .warn (
242+ self .logger .warning (
243243 f"""
244244 No vote_classification from { single_line_motion } " in journal at { self .source .url }
245245 """
@@ -293,7 +293,7 @@ def parse_match(self, match, index):
293293 yea_mismatch = first_total_yea != total_yea
294294 nay_mismatch = first_total_nay != total_nay
295295 if yea_mismatch or nay_mismatch :
296- self .logger .warn (
296+ self .logger .warning (
297297 f"Cannot accurately parse to determine margins for vote { index + 1 } in { self .source .url } "
298298 )
299299 return {}
@@ -304,7 +304,7 @@ def parse_match(self, match, index):
304304 for miscount in yea_matches_miscount , nay_matches_miscount :
305305 # Allows for minor miscount in cases of PDF formatting issues
306306 if abs (miscount ) > determinative_margin :
307- self .logger .warn (
307+ self .logger .warning (
308308 f"Cannot accurately parse to determine margins for vote { index + 1 } in { self .source .url } "
309309 )
310310 return {}
@@ -346,7 +346,7 @@ def get_bill_id(self, index):
346346 chamber , number = bill_id_match [- 1 ]
347347 self .bill_id = f"{ chamber [0 ]} { number } "
348348 if not self .bill_id :
349- self .logger .warn (
349+ self .logger .warning (
350350 f"No preceding bill id for vote { index + 1 } in { self .source .url } "
351351 )
352352 return self .bill_id
@@ -516,7 +516,7 @@ def process_page(self):
516516 for vote in vote_text :
517517 vote_parser = HouseVoteRecordParser (vote , session = self .session )
518518 if (warning := vote_parser .get_warning ()) is not None :
519- self .logger .warn (warning )
519+ self .logger .warning (warning )
520520 else :
521521 vote_parser .error_if_invalid ()
522522 vote_event = vote_parser .createVoteEvent ()
0 commit comments