Sentry logging caught errors

I’m trying to prevent Sentry from getting overrun with an error that happens a lot (when our web app is open in mobile Safari, and the device is turned off, then back on…it doesn’t affect anything except for making it hard to find other errors that Sentry lumps together with them) by catching the error:

try {
  window.pubsubListener = new window.Ably.Realtime({ authUrl: '/pubsub_auth_token_request' });
  window.pubsub_listener = window.pubsubListener;
} catch(error) {
  console.log('Trapped error thrown by window.Ably.Realtime:');

However, Sentry is logging the error anyway:

How do I stop Sentry from logging this error?

Thank you,