From 1d5c7d662e7af50cee1e3e043b7cf23c2626bb8e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Feb 2024 13:26:28 +0530 Subject: [PATCH] log error when failing to parse URL --- kitty/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/utils.py b/kitty/utils.py index 8643abee0..05d26dca0 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -1153,7 +1153,8 @@ def sanitize_url_for_dispay_to_user(url: str) -> str: if purl.path: purl = purl._replace(path=unquote(purl.path)) url = urlunparse(purl) - except Exception: + except Exception as e: + log_error(e) url = 'Unparseable URL: ' + url return url