diff --git a/colrev/ops/search.py b/colrev/ops/search.py index 2364699de..7044dbbd8 100644 --- a/colrev/ops/search.py +++ b/colrev/ops/search.py @@ -187,8 +187,11 @@ def run_db_search( # type: ignore "and run the following query:" ) print() - print(f"{Colors.ORANGE}{source.get_query()}{Colors.END}") - print() + try: + print(f"{Colors.ORANGE}{source.get_query()}{Colors.END}") + print() + except KeyError: + pass print( f"- Replace search results in {Colors.ORANGE}" + str(source.filename)