[FIX] website_sale_aplicoop: Add logging to except-pass block
- Replaced empty pass statement in except block with proper logging - Logs invalid category filter errors for debugging - Fixes flake8 W8138 warning: pass into block except
This commit is contained in:
parent
10ae5bcbf6
commit
1f37f289ba
1 changed files with 2 additions and 2 deletions
|
|
@ -488,8 +488,8 @@ class AplicoopWebsiteSale(WebsiteSale):
|
|||
category_id,
|
||||
len(products),
|
||||
)
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
except (ValueError, TypeError) as e:
|
||||
_logger.warning("eskaera_shop: Invalid category filter: %s", str(e))
|
||||
|
||||
# Prepare supplier info dict: {product.id: 'Supplier (City)'}
|
||||
product_supplier_info = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue