Permalink
Browse files

im.kayacのexception調整

  • Loading branch information...
1 parent f4f09b0 commit 1e312491ee2feb425c9030af7189d9f4a61b1659 @non117 committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lib/outputs/imkayac.py
@@ -26,6 +26,6 @@ def throw(self, packet):
request = urllib2.Request(url, data=urllib.urlencode(params))
try:
response = urllib2.urlopen(request).read()
- except urllib2.HTTPError, e:
- return e.code
+ except urllib2.URLError:
+ pass
return "posted" in response

0 comments on commit 1e31249

Please sign in to comment.