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( if is not None else 0
target_size = os.path.getsize( if ( is not None and
== "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(
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