Fixed unicode decode error
This commit is contained in:
parent
a9f4bf18af
commit
9e0a9a5d39
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ def error( text ):
|
||||||
raise RuntimeError(text)
|
raise RuntimeError(text)
|
||||||
|
|
||||||
def log( text ):
|
def log( text ):
|
||||||
print text
|
print text.encode('utf-8')
|
||||||
logging.info( text )
|
logging.info( text.encode('utf-8') )
|
||||||
|
|
||||||
def is_ip( ip ):
|
def is_ip( ip ):
|
||||||
if re.match('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}', ip) is None:
|
if re.match('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}', ip) is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue