diff libervia/backend/plugins/plugin_comp_ap_gateway/__init__.py @ 4262:d366d90a71aa

component AP Gateway: log invalid account in case of error.
author Goffi <goffi@goffi.org>
date Wed, 12 Jun 2024 22:34:19 +0200
parents 49019947cc76
children 0d7bb4df2343
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_ap_gateway/__init__.py	Wed Jun 12 22:33:10 2024 +0200
+++ b/libervia/backend/plugins/plugin_comp_ap_gateway/__init__.py	Wed Jun 12 22:34:19 2024 +0200
@@ -840,7 +840,7 @@
         @raise PermissionError: non local jid is used when gateway doesn't allow them
         """
         if ap_account.count("@") != 1:
-            raise ValueError("Invalid AP account")
+            raise ValueError(f"Invalid AP account {ap_account!r}")
         if ap_account.startswith("___"):
             encoded = True
             ap_account = ap_account[3:]