From 725e7a098f03d5b2f87947b21ecc9a7bfaf22a59 Mon Sep 17 00:00:00 2001 From: Koa Wells Date: Thu, 16 Mar 2023 11:27:46 -0400 Subject: [PATCH] Fix hub logger --- hub/hub_logger/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/hub_logger/__init__.py b/hub/hub_logger/__init__.py index 4c3dd95c..87629fef 100644 --- a/hub/hub_logger/__init__.py +++ b/hub/hub_logger/__init__.py @@ -6,7 +6,7 @@ log_dir = (Path(__file__).parent.parent / 'logs').resolve() log_file = (log_dir / 'hub.log').resolve() try: if not os.path.isfile(log_file): - if not os.path.exists: + if not os.path.exists(log_dir): os.mkdir(log_dir) with open(log_file, 'x'): pass