changeset 1166:5baf7ece44a0

server (tasks): fixed crash when --dev_mode is used
author Goffi <goffi@goffi.org>
date Wed, 10 Apr 2019 21:06:35 +0200
parents 6424d3684d1e
children 7d2e098ea3f4
files libervia/server/tasks.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/server/tasks.py	Wed Apr 10 21:06:34 2019 +0200
+++ b/libervia/server/tasks.py	Wed Apr 10 21:06:35 2019 +0200
@@ -130,7 +130,7 @@
                 prepare(self)
             self.validateData(task_data)
             if self.host.options['dev_mode']:
-                dirs = task_data.get['WATCH_DIRS']
+                dirs = task_data.get('WATCH_DIRS', [])
                 for dir_ in dirs:
                     self.host.files_watcher.watchDir(
                         dir_, auto_add=True, recursive=True,