Skip to content
Snippets Groups Projects
Commit 141af85f authored by Demian Katz's avatar Demian Katz
Browse files

Tolerate unsupported pickup locations.

parent 21c9121c
No related merge requests found
......@@ -800,7 +800,12 @@ class MyResearchController extends AbstractBase
}
// Get List of PickUp Libraries based on patron's home library
$view->pickup = $catalog->getPickUpLocations($patron);
try {
$view->pickup = $catalog->getPickUpLocations($patron);
} catch (\Exception $e) {
// Do nothing; if we're unable to load information about pickup
// locations, they are not supported and we should ignore them.
}
$view->recordList = $recordList;
return $view;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment