Commit c4028bc0 authored by Yori Fournier's avatar Yori Fournier Committed by Yori
Browse files

Corrected the bug: issue 101

in mpl_server.py: get_fig_by_id(): fig_id -> str(fig_id)
parent c2cd1b3b
Pipeline #684 failed with stage
in 12 minutes and 31 seconds
......@@ -297,10 +297,10 @@ class MplServer(SocketServer.TCPServer):
fig = self._figures.get(fig_id,None)
if fig is None:
if debug:
print(WARN + "The figure ID: " + fig_id + " does not exist.")
print(WARN + "The figure ID: " + str(fig_id) + " does not exist.")
return Status(False, "The figure ID: "
+ fig_id + " does not exist.")
+ str(fig_id) + " does not exist.")
elif isinstance(fig, MplFig):
if debug:
print('Figure ', fig_id, ' found in database')
print('Figure ' + str(fig_id) + ' found in database')
return fig
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