[FIX] website_sale_aplicoop: lint fixes (exception chaining, imports, remove unused vars)
This commit is contained in:
parent
a997331c2d
commit
91cfb9e137
15 changed files with 1344 additions and 1472 deletions
17
website_sale_aplicoop/controllers/exceptions.py
Normal file
17
website_sale_aplicoop/controllers/exceptions.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""Shared exceptions for website_sale_aplicoop controllers helpers.
|
||||
|
||||
These are imported by helper modules to avoid circular imports with
|
||||
`website_sale.py` when splitting helpers into separate files.
|
||||
"""
|
||||
|
||||
|
||||
class BadRequestError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ForbiddenError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class GroupOrderUnavailable(Exception):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue