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
55be37c1
Commit
55be37c1
authored
Aug 29, 2019
by
Yori Fournier
Committed by
Yori
Aug 29, 2019
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpl_server.py
View file @
55be37c1
...
...
@@ -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
())
...
...
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