Skip to content
Snippets Groups Projects
Commit b00cc4e8 authored by Taya Snijder's avatar Taya Snijder
Browse files

removed exception because it did nothing extra

parent 2677a8d5
No related branches found
No related tags found
1 merge request!155L2SS-399: added reconnect option
......@@ -56,13 +56,10 @@ class tcp_receiver(receiver):
def reconnect(self):
self.fd = None
try:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect((self.host, self.port))
self.fd = self.sock.fileno()
return True
except Exception:
raise
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect((self.host, self.port))
self.fd = self.sock.fileno()
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment