attempting to catch exception for api call restriction in production setting