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