From 1c4879967eaff0596949e8a31aa49dd89a24edda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 20 May 2008 16:49:22 +0200 Subject: [PATCH] Fix exception display for external exception --- tryton/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/rpc.py b/tryton/rpc.py index 7e9205289f..269cf91396 100644 --- a/tryton/rpc.py +++ b/tryton/rpc.py @@ -189,7 +189,7 @@ def process_exception(exception, parent, obj='', method='', *args): details = str(exception.args[1]) else: details = data - if hasattr(data, 'split'): + if hasattr(data, 'split') and ' -- ' in data: lines = data.split('\n') type = lines[0].split(' -- ')[0] description = ''