fix clean install bug

This commit is contained in:
Cole Deck 2024-05-08 12:34:07 -05:00
parent 36249058ac
commit 1f69dbdb82

View File

@ -313,7 +313,8 @@ def get_multi(partnums, delay, dir, webport, cache=True, bar=None):
if _download_image(search_result["image"], output_dir):
fprint("Downloaded hi-res part image for " + partnum)
returnval = [partnum, dstype, True, False]
os.remove(output_dir + "/parsed")
if os.path.exists(output_dir + "/parsed"):
os.remove(output_dir + "/parsed")
touch(output_dir + "/found_part_hires")
else:
fprint("Using cached hi-res part image for " + partnum)