add exception on logging close #83

This commit is contained in:
clinton-hall 2013-05-01 13:35:26 +09:30
parent b363473463
commit 2950caad33
9 changed files with 50 additions and 63 deletions

View file

@ -80,8 +80,8 @@ def process(dirName, nzbName=None, status=0):
try:
urlObj = myOpener.openit(url)
except IOError, e:
Logger.error("Unable to open URL: %s", str(e))
except:
Logger.exception("Unable to open URL")
return 1 # failure
result = json.load(urlObj)