From 2a8c71cf3195073ff8f501eefdf4bf2d00510b84 Mon Sep 17 00:00:00 2001 From: Arjun Bingly Date: Thu, 2 May 2024 15:42:35 -0400 Subject: [PATCH] Syntax error for multiple exceptions --- src/grag/quantize/quantize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/grag/quantize/quantize.py b/src/grag/quantize/quantize.py index feaeb76..2b41963 100644 --- a/src/grag/quantize/quantize.py +++ b/src/grag/quantize/quantize.py @@ -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)