adjusts try except logic in api manager