From aad2579beb19221a50e9c8d449ec2d3b28bdea7f Mon Sep 17 00:00:00 2001 From: moi15moi Date: Wed, 2 Oct 2024 20:18:52 -0400 Subject: [PATCH] [font_loader] Remove duplicate Path --- font_collector/font/font_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font_collector/font/font_loader.py b/font_collector/font/font_loader.py index 6866912..f2518ad 100644 --- a/font_collector/font/font_loader.py +++ b/font_collector/font/font_loader.py @@ -114,7 +114,7 @@ def is_file_font(file_name: Path) -> bool: for root, dirs, files in os.walk(font_path): for name in files: file_path = Path(os.path.join(root, name)) - if is_file_font(Path(file_path)): + if is_file_font(file_path): try: additional_fonts.append(FontFile.from_font_path(file_path)) except InvalidFontException as e: