Skip to content

Commit

Permalink
Add another failure check
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Dec 30, 2023
1 parent 9eb525b commit 1a09a2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cron/legislators.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@
$log->put('Found a new senator: ' . $name . ' (http://apps.senate.virginia.gov/Senator/memberpage.php?id=' . $lis_id . ')', 6);

$data = $import->fetch_legislator_data('senate', $lis_id);
if ($data == false)
{
$log->put('Error: Could not fetch that senator’s data.', 6);
continue;
}

$errors = false;

Expand Down

0 comments on commit 1a09a2b

Please sign in to comment.