From 9e0a9a5d3917c283e4f46c2f87cd9d03d720a458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Wed, 8 Jun 2016 17:02:28 +0200 Subject: [PATCH] Fixed unicode decode error --- bin/srv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/srv.py b/bin/srv.py index f19625f..85b6a12 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -111,8 +111,8 @@ def error( text ): raise RuntimeError(text) def log( text ): - print text - logging.info( text ) + print text.encode('utf-8') + logging.info( text.encode('utf-8') ) def is_ip( ip ): if re.match('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}', ip) is None: