Commit 5d8107d7 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix crash due to analytics for URL

parent 31d4ae1b
......@@ -1409,9 +1409,10 @@ 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()) if self.target is not None else 0
target_size = os.path.getsize(self.target.get_path()) if (self.target is not None and self.target.get_type()
== "local") else 0
query_size = None
if self.query is not None:
if self.query is not None and self.query.get_type() == "local":
query_size = os.path.getsize(self.query.get_path())
log = Analytics.create(
id_job=self.id_job,
......
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