mirror of
https://github.com/chubin/wttr.in.git
synced 2024-10-05 09:52:13 +02:00
Fixed unicode decode error
This commit is contained in:
parent
a9f4bf18af
commit
9e0a9a5d39
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user