refactor error handling
refactor error handling

to avoid nested conditionals

FundingCircle/shipment_tracker,FundingCircle/shipment_tracker,FundingCircle/shipment_tracker,FundingCircle/shipment_tracker