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