mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-26 11:14:23 +01:00
wip: Big refactoring
autoreply extension OK.
This commit is contained in:
@@ -6,9 +6,11 @@
|
||||
"""
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
|
||||
class ModoboaException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class PermDeniedException(ModoboaException):
|
||||
def __init__(self, msg=None):
|
||||
self.msg = msg
|
||||
@@ -17,7 +19,3 @@ class PermDeniedException(ModoboaException):
|
||||
if self.msg:
|
||||
return _("Permission denied: %s" % self.msg)
|
||||
return _("Permission denied")
|
||||
|
||||
class NeedsMailboxException(ModoboaException):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user