Skip to content

Commit 3d98dc7

Browse files
committed
fixup! *.py: logging basiconfig refactor to use conditional expression
1 parent 7f28921 commit 3d98dc7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

convert-hf-to-gguf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,10 +2472,7 @@ def parse_args() -> argparse.Namespace:
24722472
def main() -> None:
24732473
args = parse_args()
24742474

2475-
if args.verbose:
2476-
logging.basicConfig(level=logging.DEBUG)
2477-
else:
2478-
logging.basicConfig(level=logging.INFO)
2475+
logging.basicConfig(level=logging.DEBUG if args.verbose else logging.INFO)
24792476

24802477
dir_model = args.model
24812478

0 commit comments

Comments
 (0)