From ab65f572b844d2ba2ce0fb7342b0215e7b461c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 14 Aug 2008 14:15:19 +0200 Subject: [PATCH] Fix typo in NotLogged exception --- tryton/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tryton/rpc.py b/tryton/rpc.py index c90d00a3ce..9a2b0f198f 100644 --- a/tryton/rpc.py +++ b/tryton/rpc.py @@ -127,8 +127,8 @@ def context_reload(): def execute(obj, method, *args): global _SOCK, _DATABASE, _USER, _SESSION - if not _SOCK: - raise Exception('Not logged!') + if not _SOCK or not _SOCK.connected: + raise Exception('NotLogged') logging.getLogger('rpc.request').info(str((obj, method, args))) key = False if len(args) >= 6 and args[1] == 'fields_view_get':