Commit 57b2e481 authored by Robin Obůrka's avatar Robin Obůrka

network: Fix still broken string

parent 621db5ef
......@@ -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:
......
Markdown is supported
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