From aa661da9e2a90ffbde527ec239197ed217516c23 Mon Sep 17 00:00:00 2001 From: f321x Date: Thu, 21 Aug 2025 14:41:47 +0200 Subject: [PATCH] swaps: stop sending whole req exception to client --- electrum/submarine_swaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index 616dae332..5ba8e046f 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -1841,7 +1841,7 @@ class NostrTransport(SwapServerTransport): except Exception as e: self.logger.exception(f"failed to handle {request=}") error_response = json.dumps({ - "error": str(e)[:100], + "error": f"Internal Server Error: {str(type(e))}", "reply_to": event_id, }) await self.taskgroup.spawn(self.send_direct_message(event_pubkey, error_response))