mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-11 13:42:34 +08:00
fix condition
This commit is contained in:
parent
784d32c8ec
commit
0f73a69d7d
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user