mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Remove unused exception variables, now that this is possible with PHP8
This commit is contained in:
parent
fe16cb3b21
commit
8127f0c7e2
36 changed files with 60 additions and 63 deletions
|
@ -105,7 +105,7 @@ try{
|
|||
try{
|
||||
$toggleButton = $driver->wait(20, 250)->until(WebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::xpath('//button[contains(@class, "button-toggle")]')));
|
||||
}
|
||||
catch(Exception $ex){
|
||||
catch(Exception){
|
||||
$log->Write('Error: Couldn\'t find donation.');
|
||||
continue;
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ try{
|
|||
$payment->User = null;
|
||||
}
|
||||
}
|
||||
catch(Exception $ex){
|
||||
catch(Exception){
|
||||
// Anonymous donations don't have these elements present and will throw an exception
|
||||
$payment->User = null;
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ try{
|
|||
try{
|
||||
$payment->Create();
|
||||
}
|
||||
catch(Exceptions\PaymentExistsException $ex){
|
||||
catch(Exceptions\PaymentExistsException){
|
||||
// Payment already exists, just continue
|
||||
$log->Write('Donation already in database.');
|
||||
continue;
|
||||
|
@ -217,7 +217,7 @@ try{
|
|||
try{
|
||||
$patron->AlternateName = trim($detailsRow->findElement(WebDriverBy::xpath('//td[preceding-sibling::td[normalize-space(.) = "Attribution Text"]]'))->getText());
|
||||
}
|
||||
catch(Exception $ex){
|
||||
catch(Exception){
|
||||
}
|
||||
|
||||
$log->Write('Adding donor as patron ...');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue