From 7b19f3ef8a5ffb12a7b412440690f141afe6910f Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 11 Dec 2008 09:58:25 +0100 Subject: [PATCH] [FIX] convert message to string before stripping bzr revid: christophe@tinyerp.com-20081211085825-24fmjnkjn0db0y8q --- bin/netsvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/netsvc.py b/bin/netsvc.py index cc0ef093b17..9072421c0b7 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -206,7 +206,7 @@ class Logger(object): log = logging.getLogger(name) level_method = getattr(log, level) - result = msg.strip().split('\n') + result = str(msg).strip().split('\n') if len(result)>1: for idx, s in enumerate(result): level_method('[%02d]: %s' % (idx+1, s,))