Commit fae0e52a authored by Matt Traudt's avatar Matt Traudt Committed by Matt Traudt
Browse files

Also catch ProtocolError

parent e6c86096
from stem import (CircuitExtensionFailed, InvalidRequest) from stem import (CircuitExtensionFailed, InvalidRequest, ProtocolError)
import random import random
import sbws.util.stem as stem_utils import sbws.util.stem as stem_utils
from .relaylist import RelayList from .relaylist import RelayList
...@@ -85,7 +85,8 @@ class CircuitBuilder: ...@@ -85,7 +85,8 @@ class CircuitBuilder:
for _ in range(0, 3): for _ in range(0, 3):
try: try:
circ_id = c.new_circuit(path, await_build=True) circ_id = c.new_circuit(path, await_build=True)
except (InvalidRequest, CircuitExtensionFailed) as e: except (InvalidRequest, CircuitExtensionFailed,
ProtocolError) as e:
log.warning(e) log.warning(e)
continue continue
self.built_circuits.add(circ_id) self.built_circuits.add(circ_id)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment