[2051] Re-add missing context

It's not a refactor if I don't accidentally nuke a lang comment
This commit is contained in:
David Sangrey committed 2023-11-30 22:05:59 -05:00
1 parent 170b86b5dc
commit f30fb56f6e
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -865,11 +865,15 @@ class Session:
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')
+1 -1
View File
@@ -84,7 +84,7 @@ class Plugin:
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.