mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-14 07:02: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):
|
def read_cnr_id(fullpath):
|
||||||
cnr_id_path = os.path.join(fullpath, '.git', '.cnr-id')
|
cnr_id_path = os.path.join(fullpath, '.git', '.cnr-id')
|
||||||
try:
|
try:
|
||||||
if not os.path.exists(cnr_id_path):
|
if os.path.exists(cnr_id_path):
|
||||||
with open(cnr_id_path) as f:
|
with open(cnr_id_path) as f:
|
||||||
return f.read().strip()
|
return f.read().strip()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user