From 32b51fcd1d97650df08055a3111401bc59f212ab Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Sat, 7 Dec 2024 23:28:22 +0000 Subject: [PATCH] fix broken instance/type check --- utils/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/reader.py b/utils/reader.py index 9f1b7f9..9191f74 100644 --- a/utils/reader.py +++ b/utils/reader.py @@ -14,7 +14,7 @@ class LogFileReader: """ """ def __init__(self, file_path: Path): - if type(file_path) != Path: + if not isinstance(file_path, Path): raise TypeError(f"file_path must be type Path, not {type(file_path)}") self.file_path = file_path