mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
use StandardError
This commit is contained in:
parent
dcf4c8fcf0
commit
6614d8c76b
1 changed files with 4 additions and 2 deletions
|
@ -411,9 +411,11 @@ def clean_session(session_id, profiles=[]):
|
|||
|
||||
# Moulinette core classes ----------------------------------------------
|
||||
|
||||
class MoulinetteError(OSError):
|
||||
class MoulinetteError(StandardError):
|
||||
"""Moulinette base exception"""
|
||||
pass
|
||||
def __init__(self, key, *args, **kwargs):
|
||||
msg = m18n.g(key, *args, **kwargs)
|
||||
super(MoulinetteError, self).__init__(msg)
|
||||
|
||||
|
||||
class MoulinetteLock(object):
|
||||
|
|
Loading…
Add table
Reference in a new issue