Commit 55be37c1 authored by Yori Fournier's avatar Yori Fournier Committed by Yori
Browse files

in mpl_server.py: at various places removed `e.message` which doesnot exist.

                  cast all e.args to string where printted.
parent ce9aaa70
Pipeline #688 failed with stage
in 11 minutes and 55 seconds
......@@ -88,13 +88,13 @@ class MplHandler(SocketServer.StreamRequestHandler):
print(SPCE + "SERVER: I tried: "
+ str(fig_class.__name__)
+ '(' + str(datas) + ', ' + str(kwargs) + ')')
print(SPCE + "SERVER: Exception details where:",
e.message, e.args)
print(SPCE + "SERVER: Exception details where:"
+ str(e.args))
return Status(False, "I could not create the requested "
"Figure. I tried: " + str(fig_class.__name__)
+ '(' + str(datas) + ', ' + str(kwargs) + ')'
+ " Exception details where:"
+ str(e.message) + str(e.args))
+ str(e.args))
# add the figure to the global index
self.server._figures[fig.get_fig_id()] = fig
......@@ -136,11 +136,10 @@ class MplHandler(SocketServer.StreamRequestHandler):
except Exception as e:
if debug:
print(WARN + "I couldn't format the rawdata.")
print(SPCE + "SERVER: Exception details where:",
e.message,
e.args)
print(SPCE + "SERVER: Exception details where:" +
str(e.args))
return Status(False, "I couldn't format the rawdata."\
" Exception details where:" + str(e.message) + str(e.args))
" Exception details where:" + str(e.args))
# compose the formated data
datas = tuple(ax.data for ax in fig.get_axes())
......
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