NotLogged exception is no more used

issue5415
review17971003
This commit is contained in:
Cédric Krier
2016-03-21 23:39:30 +01:00
parent 33b240736c
commit c19f93cd9b
2 changed files with 2 additions and 10 deletions
-7
View File
@@ -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):
+2 -3
View File
@@ -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: