Skip to content

Commit

Permalink
Syntax error for multiple exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
arjbingly committed May 2, 2024
1 parent b386cf1 commit 2a8c71c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/grag/quantize/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
if user_input == "":
try:
root_path = Path(config["quantize"]["llama_cpp_path"])
except KeyError or TypeError:
print(f'Using {root_path} from config.ini')
except (KeyError, TypeError):
root_path = Path('./grag-quantize')
print(f'Using {root_path}, default.')
else:
root_path = Path(user_input)

Expand Down

0 comments on commit 2a8c71c

Please sign in to comment.