mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add comment about the motivation behind YunohostError
This commit is contained in:
parent
fb010765bd
commit
46972788b2
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,12 @@ from moulinette.core import MoulinetteError
|
|||
from moulinette import m18n
|
||||
|
||||
class YunohostError(MoulinetteError):
|
||||
"""Yunohost base exception"""
|
||||
"""
|
||||
Yunohost base exception
|
||||
|
||||
The (only?) main difference with MoulinetteError being that keys
|
||||
are translated via m18n.n (namespace) instead of m18n.g (global?)
|
||||
"""
|
||||
def __init__(self, key, __raw_msg__=False, *args, **kwargs):
|
||||
if __raw_msg__:
|
||||
msg = key
|
||||
|
|
Loading…
Add table
Reference in a new issue