Commit 703315be authored by Yori's avatar Yori
Browse files

in mpl_client.sync_fig_format_rawdata(): if server returns an error datas is...

in mpl_client.sync_fig_format_rawdata(): if server returns an error datas is set to None and error message is printed
in mpl_fig._format_rawdata_client(): if datas returned from the client is None then return False.
parent 7cf2b46f
Pipeline #691 failed with stage
in 23 minutes and 35 seconds
......@@ -332,7 +332,7 @@ class MplClient():
# Print error message
print(str(formated_data.content))
datas = (None,)
datas = None
else:
# set the figure data to answerSig.value
datas = formated_data.content
......
......@@ -882,13 +882,15 @@ class MplFig(metaclass=FigureClassFactory, context=CONTEXT.lower()):
synchronized figure (server-side) """
if (self.client is not None) and (self.sync_id != -1):
if (True):
datas = self.client.sync_fig_format_rawdata(self.sync_id)
datas = self.client.sync_fig_format_rawdata(self.sync_id)
for ax, data in zip(self.get_axes(), datas):
ax.data = data
if datas is not None:
for ax, data in zip(self.get_axes(), datas):
ax.data = data
self.formatted = True
self.formatted = True
else:
return(False)
else:
print(SEVR + 'The figure is not properly synchronized.')
......
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