Updated flake8 indentation changes & added return None to queryHTTP exceptions

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-09-08 19:41:23 +05:30
parent 2821f0f667
commit da7f5102d6
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A

View File

@ -247,6 +247,7 @@ class namecoinConnection(object):
self.con.send(data)
except: # noqa:E722
logger.info("HTTP connection error")
return None
try:
resp = self.con.getresponse()
@ -257,6 +258,7 @@ class namecoinConnection(object):
" %i: %s" % (resp.status, resp.reason))
except: # noqa:E722
logger.info("HTTP receive error")
return None
return result