raise RefreshError("Unable to refresh access token due to connection error.") from e
except Exception as e:
Log.error(f"Error trying to refresh access token: {e}")
Log.error(f"No {self.target.service} integration found.")
print(
f"Please ensure you have selected a {self.target.service} account in the Kernels Settings sidebar.")
raise RefreshError("Unable to refresh access token.") from e
After Change
except Exception as e:
Log.error(f"Error trying to refresh access token: {e}")
if (not get_integrations().has_integration(self.target)):
Log.error(f"No {self.target.service} integration found.")
print(
f"Please ensure you have selected a {self.target.service} account in the Kernels Settings sidebar.")
raise RefreshError("Unable to refresh access token.") from e