fix condition

This commit is contained in:
Dr.Lt.Data 2025-01-05 11:25:50 +09:00
parent 784d32c8ec
commit 0f73a69d7d

View File

@ -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: