Catch exceptions when ELB times out a connection to etcd.

This commit is contained in:
Jake Moshenko 2015-01-23 11:29:38 -05:00
parent 725808a4f8
commit 86852da4ba

View file

@ -8,7 +8,7 @@ import json
from datetime import datetime, timedelta
from trollius import From, coroutine, Return, async
from concurrent.futures import ThreadPoolExecutor
from urllib3.exceptions import ReadTimeoutError
from urllib3.exceptions import ReadTimeoutError, ProtocolError
from buildman.manager.basemanager import BaseManager
from buildman.manager.executor import PopenExecutor, EC2Executor
@ -75,7 +75,7 @@ class EphemeralBuilderManager(BaseManager):
try:
etcd_result = changed_key_future.result()
except ReadTimeoutError:
except (ReadTimeoutError, ProtocolError):
return
change_callback(etcd_result)