diff --git a/kitty/search_query_parser.py b/kitty/search_query_parser.py index ef16191c8..436a866de 100644 --- a/kitty/search_query_parser.py +++ b/kitty/search_query_parser.py @@ -9,6 +9,8 @@ from typing import Callable, Iterator, List, NamedTuple, Optional, Sequence, Set class ParseException(Exception): + hide_traceback = True + @property def msg(self) -> str: if len(self.args) > 0: @@ -132,6 +134,7 @@ class NoLocation(ParseException): else: super().__init__(f'No location specified before {tt}') + class Parser: def __init__(self, allow_no_location: bool = False) -> None: