diff --git a/pantalaimon/index.py b/pantalaimon/index.py index 0f10044..5c8e02b 100644 --- a/pantalaimon/index.py +++ b/pantalaimon/index.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from importlib import util - class InvalidQueryError(Exception): pass diff --git a/pantalaimon/main.py b/pantalaimon/main.py index 270b957..4799f3a 100644 --- a/pantalaimon/main.py +++ b/pantalaimon/main.py @@ -237,6 +237,7 @@ async def daemon(context, log_level, debug_encryption, config, data_path): raise + @click.command( help=( "pantalaimon is a reverse proxy for matrix homeservers that " @@ -255,7 +256,6 @@ async def daemon(context, log_level, debug_encryption, config, data_path): @click.option("--data-path", type=click.Path(exists=True)) @click.pass_context def main(context, log_level, debug_encryption, config, data_path): - event = asyncio.Event() try: asyncio.run(daemon(context, log_level, debug_encryption, config, data_path)) except (KeyboardInterrupt, asyncio.CancelledError): @@ -263,5 +263,6 @@ def main(context, log_level, debug_encryption, config, data_path): return + if __name__ == "__main__": main() diff --git a/pantalaimon/panctl.py b/pantalaimon/panctl.py index 54fc2b3..9d9eb2d 100644 --- a/pantalaimon/panctl.py +++ b/pantalaimon/panctl.py @@ -530,7 +530,7 @@ class PanCtl: ) if user_list: - print(f" - Pan users:") + print(" - Pan users:") user_string = "\n".join(user_list) print_formatted_text(HTML(user_string)) @@ -541,11 +541,11 @@ class PanCtl: for device in devices: if device["trust_state"] == "verified": - trust_state = f"Verified" + trust_state = "Verified" elif device["trust_state"] == "blacklisted": - trust_state = f"Blacklisted" + trust_state = "Blacklisted" elif device["trust_state"] == "ignored": - trust_state = f"Ignored" + trust_state = "Ignored" else: trust_state = "Unset"