Mercurial > libervia-web
diff libervia/server/tasks.py @ 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 | 813d54af8c0c |
children | 170802865156 |
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,