main and ruff
This commit is contained in:
@@ -88,9 +88,7 @@ class AttachmentStorage:
|
|||||||
file_path = STORAGE_DIR / save_name
|
file_path = STORAGE_DIR / save_name
|
||||||
try:
|
try:
|
||||||
file_path.write_bytes(file_bytes)
|
file_path.write_bytes(file_bytes)
|
||||||
logger.info(
|
logger.info(f"Saved attachment ({len(file_bytes)} bytes) to {file_path}")
|
||||||
f"Saved attachment ({len(file_bytes)} bytes) to {file_path}"
|
|
||||||
)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Failed to save attachment to {file_path}: {e}")
|
logger.error(f"Failed to save attachment to {file_path}: {e}")
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user