From ad7314b45946e3d425b81979c8bbbc82262a8cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 7 Jul 2009 19:44:43 +0200 Subject: [PATCH] Don't call request_get if it is not login --- tryton/gui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 1b2aa93c57..8ec8d3103f 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -1006,6 +1006,8 @@ class Main(object): def request_set(self, exception=False): try: + if not rpc._USER: + return if not exception: res = rpc.execute('model', 'res.request', 'request_get') if not res: