From 4cd746a1fd6feadfc8ee851ccf326e001e908a5a Mon Sep 17 00:00:00 2001 From: Paul J Stevens Date: Mon, 29 Nov 2010 09:03:09 +0000 Subject: [PATCH] fix deprecation warning issue1772 --- trytond/ir/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/cron.py b/trytond/ir/cron.py index 589f5f66d0..bd258f80d7 100644 --- a/trytond/ir/cron.py +++ b/trytond/ir/cron.py @@ -111,7 +111,7 @@ class Cron(ModelSQL, ModelView): continue tb_s += line try: - tb_s += error.message.decode('utf-8', 'ignore') + tb_s += str(error).decode('utf-8', 'ignore') except Exception: pass