diff --git a/apps/ops/models/celery.py b/apps/ops/models/celery.py index 0e3b99d19..c7201b553 100644 --- a/apps/ops/models/celery.py +++ b/apps/ops/models/celery.py @@ -33,4 +33,6 @@ class CeleryTask(models.Model): @property def full_log_path(self): + if not self.log_path: + return None return os.path.join(self.LOG_DIR, self.log_path)