diff --git a/companion.py b/companion.py index 4f729479c..3384af364 100644 --- a/companion.py +++ b/companion.py @@ -865,11 +865,15 @@ def handle_http_error(response: requests.Response, endpoint: str): self.dump(response) if response.status_code == 401: + # TODO: This needs to try a REFRESH, not a full re-auth + # No need for translation, we'll go straight into trying new Auth + # and thus any message would be overwritten. # CAPI doesn't think we're Auth'd raise CredentialsRequireRefresh('Frontier CAPI said "unauthorized"') if response.status_code == 418: # "I'm a teapot" - used to signal maintenance + # LANG: Frontier CAPI returned 418, meaning down for maintenance raise ServerError(_("Frontier CAPI down for maintenance")) logger.exception('Frontier CAPI: Misc. Error') diff --git a/plug.py b/plug.py index de67205b1..b343677bd 100644 --- a/plug.py +++ b/plug.py @@ -84,7 +84,7 @@ def __init__(self, name: str, loadfile: str | None, plugin_logger: logging.Logge else: logger.info(f'plugin {name} disabled') - def _get_func(self, funcname: str): # Removing Unhelpful Type Hint + def _get_func(self, funcname: str): """ Get a function from a plugin.