parent
718adc31e0
commit
1a18c810d0
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ class RequestMgr:
|
|||
if conn:
|
||||
conn.close()
|
||||
return False
|
||||
except Exception as e:
|
||||
log.error("Exception encountered: %s" % e)
|
||||
# Close connection just in case
|
||||
try:
|
||||
conn.close()
|
||||
except:
|
||||
pass
|
||||
return False
|
||||
|
||||
def getwithparams(self, host, port, path, params, header={},
|
||||
protocol="http"):
|
||||
|
|
Loading…
Reference in a new issue