mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
corrections
This commit is contained in:
parent
6614d8c76b
commit
a6cce50977
2 changed files with 3 additions and 2 deletions
|
@ -137,5 +137,5 @@ def cli(namespaces, args, use_cache=True, output_as=None,
|
|||
except MoulinetteError as e:
|
||||
import logging
|
||||
logging.getLogger(namespaces[0]).error(e.strerror)
|
||||
return e.errno
|
||||
return 1
|
||||
return 0
|
||||
|
|
|
@ -414,8 +414,9 @@ def clean_session(session_id, profiles=[]):
|
|||
class MoulinetteError(StandardError):
|
||||
"""Moulinette base exception"""
|
||||
def __init__(self, key, *args, **kwargs):
|
||||
msg = m18n.g(key, *args, **kwargs)
|
||||
msg = moulinette.m18n.g(key, *args, **kwargs)
|
||||
super(MoulinetteError, self).__init__(msg)
|
||||
self.strerror = msg
|
||||
|
||||
|
||||
class MoulinetteLock(object):
|
||||
|
|
Loading…
Reference in a new issue