CC-5709: Airtime Analyzer

* Catch exceptions related to unpickling the HTTP request queue
This commit is contained in:
Albert Santoni 2014-04-23 17:42:09 -04:00
parent f2ce77fecb
commit 9fdfc0a957

View file

@ -45,6 +45,13 @@ def process_http_requests(ipc_queue, http_retry_queue_path):
pass
else:
raise e
except Exception as e:
# If we fail to unpickle a saved queue of failed HTTP requests, then we'll just log an error
# and continue because those HTTP requests are lost anyways. The pickled file will be
# overwritten the next time the analyzer is shut down too.
logging.error("Failed to unpickle %s. Continuing..." % http_retry_queue_path)
pass
while not shutdown:
try: