Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
9cf8379c
Commit
9cf8379c
authored
Jan 03, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder condition for simpler code.
Also, fix stupid error in error handling path.
parent
92c0c673
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
neo/lib/util.py
neo/lib/util.py
+2
-5
No files found.
neo/lib/util.py
View file @
9cf8379c
...
@@ -120,11 +120,8 @@ def parseMasterList(masters, except_node=None):
...
@@ -120,11 +120,8 @@ def parseMasterList(masters, except_node=None):
socket_connector_temp
=
getConnectorFromAddress
(
address
)
socket_connector_temp
=
getConnectorFromAddress
(
address
)
if
socket_connector
is
None
:
if
socket_connector
is
None
:
socket_connector
=
socket_connector_temp
socket_connector
=
socket_connector_temp
elif
socket_connector
==
socket_connector_temp
:
elif
socket_connector
!=
socket_connector_temp
:
pass
raise
TypeError
(
"Wrong connector type : you're trying to use ipv6 and ipv4 simultaneously"
)
else
:
return
TypeError
,
(
" Wrong connector type : you're trying to use ipv6 and ipv4 simultaneously"
)
return
master_node_list
,
socket_connector
return
master_node_list
,
socket_connector
class
Enum
(
dict
):
class
Enum
(
dict
):
...
...
Write
Preview
Markdown
is supported
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