final
This commit is contained in:
@@ -34,6 +34,9 @@ def saveImage(file_bytes: bytes, file_name: str) -> bool:
|
||||
|
||||
logger.debug(f"[ImageSave] Saving image to {target_path}")
|
||||
img.save(target_path, "PNG")
|
||||
if not os.path.isfile(target_path):
|
||||
logger.error(f"[ImageSave] File {target_path} not found")
|
||||
return False
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user