From a805ce67779d17dfe24873da854da0c5208c2d83 Mon Sep 17 00:00:00 2001 From: bkfox Date: Fri, 29 Apr 2022 14:52:42 +0200 Subject: [PATCH] fix error --- aircox/models/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aircox/models/program.py b/aircox/models/program.py index 4854609..cf7d36f 100644 --- a/aircox/models/program.py +++ b/aircox/models/program.py @@ -132,7 +132,7 @@ class Program(Page): # TODO: move in signals path_ = getattr(self, '__initial_path', None) - abspath = os.path.join(conf.MEDIA_ROOT, path_) + abspath = path_ and os.path.join(conf.MEDIA_ROOT, path_) if path_ is not None and path_ != self.path and \ os.path.exists(abspath) and not os.path.exists(self.abspath): logger.info('program #%s\'s dir changed to %s - update it.',