diff --git a/trytond/exceptions.py b/trytond/exceptions.py index ff1a61ae30..1b05f7886e 100644 --- a/trytond/exceptions.py +++ b/trytond/exceptions.py @@ -26,13 +26,6 @@ class UserWarning(TrytonException): self.code = 2 -class NotLogged(TrytonException): - - def __init__(self): - super(NotLogged, self).__init__('NotLogged') - self.code = 3 - - class ConcurrencyException(TrytonException): def __init__(self, message): diff --git a/trytond/protocols/dispatcher.py b/trytond/protocols/dispatcher.py index 49528399ca..22459c50e7 100644 --- a/trytond/protocols/dispatcher.py +++ b/trytond/protocols/dispatcher.py @@ -16,8 +16,7 @@ from trytond.config import config from trytond import __version__ from trytond.transaction import Transaction from trytond.cache import Cache -from trytond.exceptions import UserError, UserWarning, NotLogged, \ - ConcurrencyException +from trytond.exceptions import UserError, UserWarning, ConcurrencyException from trytond.tools import is_instance_method from trytond.wsgi import app @@ -212,7 +211,7 @@ def _dispatch(request, pool, *args, **kwargs): transaction.rollback() continue raise - except (NotLogged, ConcurrencyException, UserError, UserWarning): + except (ConcurrencyException, UserError, UserWarning): logger.debug(log_message, *log_args, exc_info=True) raise except Exception: