|
|
@@ -169,8 +169,10 @@ class DealImage(BaseDealImage):
|
|
|
# A9999(1).jpg
|
|
|
new_file_name = "{}({})".format(goods_art_no, self.goods_images_count_dict[goods_art_no])
|
|
|
original_image_path = "{}/原始图/{}{}".format(goods_art_no_path, new_file_name, e)
|
|
|
- # 移动图片
|
|
|
- shutil.move(old_image_path, original_image_path)
|
|
|
+ try:
|
|
|
+ shutil.move(old_image_path, original_image_path)
|
|
|
+ except Exception as e:
|
|
|
+ print(f"文件操作异常:{e}")
|
|
|
|
|
|
def dealMoveImage(self, image_dir: str, callback_func=None,goods_art_no=None) -> dict:
|
|
|
if not self.check_path(image_dir=image_dir + "/历史"):
|