changeset 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 (6 months ago)
parents 5f83bba6cd27
children 2109d864a3e7
files libervia/backend/plugins/plugin_comp_ap_gateway/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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:]