Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yori Fournier
myplotlib
Commits
770c2792
Commit
770c2792
authored
Aug 29, 2019
by
Yori Fournier
Browse files
in mpl_server.py: at various places removed `e.message` which doesnot exist.
cast all e.args to string where printted.
parent
73155fbe
Pipeline
#686
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpl_server.py
View file @
770c2792
...
...
@@ -118,13 +118,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
...
...
@@ -166,11 +166,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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment