Skip to content

Commit

Permalink
Merge pull request #5004 from NewAgeAirbender/va_bills
Browse files Browse the repository at this point in the history
VA: update events to catch lack of location
  • Loading branch information
NewAgeAirbender authored Aug 9, 2024
2 parents 7bad67b + 836deca commit 7a01f20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scrapers/va/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ def scrape_upper(self, session_id):
if len(desc_split) > 1:
loc_raw = desc_split[1].strip()
# Prevent invalid length of location name
location = loc_raw[:198] if len(loc_raw) > 199 else loc_raw
if len(loc_raw) > 1:
location = loc_raw[:198] if len(loc_raw) > 199 else loc_raw
else:
location = "Unknown"
else:
location = "Unknown"

Expand Down

0 comments on commit 7a01f20

Please sign in to comment.