|
@@ -745,6 +745,8 @@ class GeneratePic(object):
|
|
|
cut_image.close()
|
|
cut_image.close()
|
|
|
if 'logo_im' in locals() and logo_im:
|
|
if 'logo_im' in locals() and logo_im:
|
|
|
logo_im.close()
|
|
logo_im.close()
|
|
|
|
|
+ if 'out_image_2' in locals() and out_image_2:
|
|
|
|
|
+ out_image_2.close()
|
|
|
except Exception as e:
|
|
except Exception as e:
|
|
|
logger.info(f"阴影处理关闭图片对象失败:{str(e)}")
|
|
logger.info(f"阴影处理关闭图片对象失败:{str(e)}")
|
|
|
print(f"Error closing images: {e}")
|
|
print(f"Error closing images: {e}")
|