errors handling
This commit is contained in:
parent
3423efac09
commit
b4786cc3f9
2 changed files with 2 additions and 1 deletions
2
menus.py
2
menus.py
|
@ -117,7 +117,7 @@ class MenuMessageFormatter:
|
|||
def create_message(self, menus: Menus, menu_type: str) -> str:
|
||||
if menus is None:
|
||||
template = self.env.get_template("menu-erreur.txt")
|
||||
return template.render()
|
||||
return template.render(menu_type=menu_type)
|
||||
|
||||
days = menus.days
|
||||
if menu_type.lower() == "introduction":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue