Commit 4d74173b authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix crash due to analytics when no target file given (plot existing map mode)

parent e0ad2dc5
......@@ -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())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment