diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index c3ed07e4..146d4d6e 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -563,7 +563,7 @@ class XCCClient(IMMClient): raise Exception('Unexpected response: ' + repr(rsp)) progress({'phase': 'upload', 'progress': 100.0}) - ipmisession.Session.pause(2) + ipmisession.Session.pause(3) # aggressive timing can cause the next call to occasionally # return 25 and fail self._refresh_token() diff --git a/pyghmi/util/webclient.py b/pyghmi/util/webclient.py index 9bda6917..df0a2fe8 100644 --- a/pyghmi/util/webclient.py +++ b/pyghmi/util/webclient.py @@ -128,7 +128,10 @@ class SecureHTTPConnection(httplib.HTTPConnection, object): # peer updates in progress should already have pointers, # subsequent transactions will cause memory to needlessly double, # but easiest way to keep memory relatively low - del uploadforms[filename] + try: + del uploadforms[filename] + except KeyError: # something could have already deleted it + pass if rsp.status != 200: raise Exception('Unexpected response in file upload: ' + rsp.read())