diff --git a/scrapers/va/bills.py b/scrapers/va/bills.py index 1e602607d2..20e9e81e20 100644 --- a/scrapers/va/bills.py +++ b/scrapers/va/bills.py @@ -129,8 +129,15 @@ def add_actions(self, bill: Bill, legislation_id: str): action_attr = self.categorizer.categorize(description) classification = action_attr["classification"] + if not row["ChamberCode"] and row["ActorType"] == "Governor": + chamber = "executive" + elif row["ChamberCode"]: + chamber = self.chamber_map[row["ChamberCode"]] + else: + chamber = None + self.logger.warning(f"Encountered unexpected action actor for legislation_id {legislation_id}") bill.add_action( - chamber=self.chamber_map[row["ChamberCode"]], + chamber=chamber, description=description, date=when, classification=classification,