fix: remove duplicate log imports in create_item function
This commit is contained in:
@@ -168,10 +168,8 @@ def create_item(
|
||||
if photo_result["status"] == "ok":
|
||||
db.refresh(db_item) # Reload to get updated photo fields
|
||||
else:
|
||||
from ..logger import log
|
||||
log.warning(f"Photo auto-save skipped for item {db_item.id}: {photo_result.get('reason')}")
|
||||
except Exception as e:
|
||||
from ..logger import log
|
||||
log.error(f"Exception during auto-save for item {db_item.id}: {e}")
|
||||
# Don't fail item creation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user