From 0f73a69d7deae6de4ec6dacc165f78fe01085ca1 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 5 Jan 2025 11:25:50 +0900 Subject: [PATCH] fix condition --- glob/cnr_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glob/cnr_utils.py b/glob/cnr_utils.py index 6e964cb6..3c6431e8 100644 --- a/glob/cnr_utils.py +++ b/glob/cnr_utils.py @@ -144,7 +144,7 @@ def generate_cnr_id(fullpath, cnr_id): def read_cnr_id(fullpath): cnr_id_path = os.path.join(fullpath, '.git', '.cnr-id') try: - if not os.path.exists(cnr_id_path): + if os.path.exists(cnr_id_path): with open(cnr_id_path) as f: return f.read().strip() except: