Commit f258944b authored by Georg Schölly's avatar Georg Schölly

fix __exit__ method of client and server class

parent 4f113090
......@@ -102,7 +102,7 @@ class Client(object):
self.connect()
return self
def __exit__(self):
def __exit__(self, exc_type, exc_value, traceback):
self.disconnect()
@staticmethod
......
......@@ -94,7 +94,7 @@ class Server(object):
self.start()
return self
def __exit__(self):
def __exit__(self, exc_type, exc_value, traceback):
self.stop()
def load_certificate(self, path):
......
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