Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
sn
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Turris
Sentinel
sn
Commits
57b2e481
Commit
57b2e481
authored
Feb 05, 2018
by
Robin Obůrka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: Fix still broken string
parent
621db5ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
sn/network.py
sn/network.py
+3
-6
No files found.
sn/network.py
View file @
57b2e481
...
...
@@ -71,8 +71,7 @@ def resource_parser(config_list):
resources
[
splitted
[
0
]]
=
list
()
resources
[
splitted
[
0
]].
append
(
Connection
(
*
splitted
[
1
:]))
else
:
raise
SockConfigError
(
"Resource {} is"
\
"invalid."
.
format
(
config
))
raise
SockConfigError
(
"Resource {} is invalid."
.
format
(
config
))
return
resources
...
...
@@ -132,14 +131,12 @@ class SN:
type
(
socket
)
==
tuple
and
not
self
.
sock_configs
[
sock_name
].
is_type
(
socket
[
1
])
):
raise
SockConfigError
(
"Socket type does not match"
\
"required value!"
)
raise
SockConfigError
(
"Socket type does not match required value!"
)
if
not
self
.
sock_configs
[
sock_name
].
socket
:
self
.
sock_configs
[
sock_name
].
connect
()
ret
.
append
(
self
.
sock_configs
[
sock_name
].
socket
)
else
:
raise
SockConfigError
(
"Resource {} not"
\
"provided."
.
format
(
sock_name
))
raise
SockConfigError
(
"Resource {} not provided."
.
format
(
sock_name
))
if
len
(
ret
)
==
1
:
return
ret
[
0
]
else
:
...
...
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