Updated flake8 indentation changes & added return None to queryHTTP exceptions
This commit is contained in:
parent
2821f0f667
commit
da7f5102d6
|
@ -247,6 +247,7 @@ class namecoinConnection(object):
|
||||||
self.con.send(data)
|
self.con.send(data)
|
||||||
except: # noqa:E722
|
except: # noqa:E722
|
||||||
logger.info("HTTP connection error")
|
logger.info("HTTP connection error")
|
||||||
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
resp = self.con.getresponse()
|
resp = self.con.getresponse()
|
||||||
|
@ -257,6 +258,7 @@ class namecoinConnection(object):
|
||||||
" %i: %s" % (resp.status, resp.reason))
|
" %i: %s" % (resp.status, resp.reason))
|
||||||
except: # noqa:E722
|
except: # noqa:E722
|
||||||
logger.info("HTTP receive error")
|
logger.info("HTTP receive error")
|
||||||
|
return None
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user