Commit 74c6c7e6 authored by Yori Fournier's avatar Yori Fournier
Browse files

Now working tested on real case sml with python3

parent d0920ba8
Pipeline #566 failed with stage
in 10 minutes and 57 seconds
......@@ -79,14 +79,17 @@ class MplClient():
try:
unpickler = MplUnpickler(rf)
response = unpickler.load()
if debug and isinstance(response, Signal):
print('CLIENT Received: {} with content \"{}\"'.format(
type(response), response.content))
# THIS CAN RAISE AN EXCEPTION IF DATA TOO LARGE!!
# if debug and isinstance(response, Signal):
# print('CLIENT Received: {} with content \"{}\"'.format(
# type(response), response.content))
except EOFError:
print('no answer received - or connection closed unexpectedly')
response = None
except Exception:
except Exception as e:
print('unknown error while waiting for response')
print(type(e))
print(e)
response = None
rf.close()
if isinstance(response, Signal):
......
Supports Markdown
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