Fixed unicode decode error

This commit is contained in:
Óscar García Amor 2016-06-08 17:02:28 +02:00
parent a9f4bf18af
commit 9e0a9a5d39

View File

@ -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: