diff --git a/livereload/watcher.py b/livereload/watcher.py index 09c3a1b..4a0c66b 100644 --- a/livereload/watcher.py +++ b/livereload/watcher.py @@ -103,8 +103,8 @@ def examine(self): name = getattr(func, '__name__', 'anonymous') logger.info( f"Running task: {name} (delay: {delay})") - if len(signature(func).parameters) > 0 and isinstance(changed, list): - func(changed) + if len(signature(func).parameters) > 0: + func(changed if isinstance(changed, list) else [path]) else: func()