From 79ae6efafb4cf20d65d886d6b35079495bc6914d Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 2 Apr 2018 19:14:42 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89?= =?UTF-8?q?Log=20path=E5=BC=95=E8=B5=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/models/celery.py | 2 ++ 1 file changed, 2 insertions(+) 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)