Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
a00625b0
Commit
a00625b0
authored
Jun 25, 2018
by
juga
Committed by
Matt Traudt
Jul 02, 2018
Browse files
Check that there are exits
to perform usability tests. This will avoid raising IndexError when choosing an exit.
parent
d1537ac6
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/destination.py
View file @
a00625b0
...
...
@@ -186,6 +186,9 @@ class DestinationList:
possible_exits
=
sorted
(
possible_exits
,
key
=
lambda
e
:
e
.
bandwidth
,
reverse
=
True
)
exits
=
possible_exits
[
0
:
num_keep
]
if
len
(
exits
)
<
1
:
log
.
warning
(
"There are no exits to perform usability tests."
)
continue
# Try three times to build a circuit to test this destination
circ_id
=
None
for
_
in
range
(
0
,
3
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment