Commit 622277f7 authored by Yori Fournier's avatar Yori Fournier
Browse files

Corrected the bug: issue 101

in mpl_server.py: get_fig_by_id(): fig_id -> str(fig_id)
parent f2bda1db
Pipeline #682 failed with stage
in 25 minutes and 14 seconds
......@@ -330,10 +330,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