NotLogged exception is no more used
issue5415 review17971003
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user