Skip to content

Commit

Permalink
fix: search/missing query
Browse files Browse the repository at this point in the history
  • Loading branch information
geritwagner committed Feb 4, 2025
1 parent 65d8834 commit 4ea9f47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions colrev/ops/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ea9f47

Please sign in to comment.