-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
建议优化下写法
Line 19 in 76239cd
| ip_api = urllib2.urlopen(r'http://ip-api.com/json') |
例如
try:
urllib2.urlopen(r'http://ip-api.com/json')
except urllib2.URLError as e:
print e.code原因是我的pi-hole默认屏蔽规则里有这个域名,so,巴啦啦报错
Metadata
Metadata
Assignees
Labels
No labels