use OpenILS::Utils::CStoreEditor qw/:funcs/;
use OpenILS::Utils::Fieldmapper;
use OpenILS::Application::AppUtils;
+use OpenSRF::EX qw/:try/;
use OpenILS::Event;
use OpenSRF::Utils::JSON;
use OpenSRF::Utils::Cache;
);
}
- my $curbsides = $U->simplereq(
- 'open-ils.curbside',
- 'open-ils.curbside.fetch_mine.atomic',
- $e->authtoken
- );
+ my $curbsides = [];
+ try { # if the service is not running, just let this fail silently
+ $curbsides = $U->simplereq(
+ 'open-ils.curbside',
+ 'open-ils.curbside.fetch_mine.atomic',
+ $e->authtoken
+ );
+ } catch Error with {};
my @pickup_libs = sort { $U->find_org($U->get_org_tree,$a)->name cmp $U->find_org($U->get_org_tree,$b)->name } keys %pickup_libs;