mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix YunohostError definition
This commit is contained in:
parent
4ba309a221
commit
24cf090221
1 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@
|
|||
"""
|
||||
|
||||
from moulinette.core import MoulinetteError
|
||||
from moulinette.__init__ import m18n
|
||||
from moulinette import m18n
|
||||
|
||||
class YunohostError(MoulinetteError):
|
||||
"""Yunohost base exception"""
|
||||
def __init__(self, key, *args, **kwargs):
|
||||
msg = m18n.n(key, *args, **kwargs)
|
||||
super(MoulinetteError, self).__init__(msg)
|
||||
super(YunohostError, self).__init__(msg)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue