diff --git a/get_specs.py b/get_specs.py index a775249..834a6c7 100755 --- a/get_specs.py +++ b/get_specs.py @@ -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)