Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
neoppod
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