From f30fb56f6e1767d05d235f6e1077dd91eddce5e0 Mon Sep 17 00:00:00 2001
From: David Sangrey <rixxan@hullseals.space>
Date: Thu, 30 Nov 2023 22:05:59 -0500
Subject: [PATCH] [2051] Re-add missing context

It's not a refactor if I don't accidentally nuke a lang comment
---
 companion.py | 4 ++++
 plug.py      | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/companion.py b/companion.py
index 4f729479..3384af36 100644
--- a/companion.py
+++ b/companion.py
@@ -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')
diff --git a/plug.py b/plug.py
index de67205b..b343677b 100644
--- a/plug.py
+++ b/plug.py
@@ -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.