From f14d66ce0869738ddd1d110e8dec8f2fc21ce9ab Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Mar 2023 06:47:26 +0530 Subject: [PATCH] ... --- src/calibre/db/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/search.py b/src/calibre/db/search.py index b4de2f014b..bd8853cbe0 100644 --- a/src/calibre/db/search.py +++ b/src/calibre/db/search.py @@ -80,7 +80,7 @@ def _match(query, value, matchkind, use_primary_find_in_search=True, case_sensit if regex.search(query, t, flags) is not None: return True except regex.error as e: - raise ParseException(_('Invalid regular expression: {}').format(str(e))) + raise ParseException(_('Invalid regular expression: {!r} with error: {}').format(query, str(e))) elif matchkind == ACCENT_MATCH: if primary_contains(query, t): return True