Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
D-GENIES
Commits
4d74173b
Commit
4d74173b
authored
Jul 04, 2018
by
Floreal Cabanettes
Browse files
Fix crash due to analytics when no target file given (plot existing map mode)
parent
e0ad2dc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/lib/job_manager.py
View file @
4d74173b
...
...
@@ -1406,7 +1406,7 @@ class JobManager:
from
dgenies.database
import
Analytics
with
Job
.
connect
():
job
=
Job
.
get
(
Job
.
id_job
==
self
.
id_job
)
target_size
=
os
.
path
.
getsize
(
self
.
target
.
get_path
())
target_size
=
os
.
path
.
getsize
(
self
.
target
.
get_path
())
if
self
.
target
is
not
None
else
0
query_size
=
None
if
self
.
query
is
not
None
:
query_size
=
os
.
path
.
getsize
(
self
.
query
.
get_path
())
...
...
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