mirror of https://github.com/nucypher/nucypher.git
Using NodeSeemsToBeDown instead of requests-specific exception.
parent
9aaf696fb5
commit
2e37fc72bf
|
@ -715,7 +715,7 @@ class Bob(Character):
|
|||
for work_order in work_orders.values():
|
||||
try:
|
||||
cfrags = self.get_reencrypted_cfrags(work_order, reuse_already_attached=cache)
|
||||
except requests.exceptions.ConnectTimeout:
|
||||
except NodeSeemsToBeDown:
|
||||
continue
|
||||
except NotFound:
|
||||
# This Ursula claims not to have a matching KFrag. Maybe this has been revoked?
|
||||
|
|
|
@ -2,5 +2,6 @@ import requests, socket
|
|||
|
||||
NodeSeemsToBeDown = (requests.exceptions.ConnectionError,
|
||||
requests.exceptions.ReadTimeout,
|
||||
requests.exceptions.ConnectTimeout,
|
||||
socket.gaierror,
|
||||
ConnectionRefusedError)
|
||||
|
|
Loading…
Reference in New Issue