Skip to content

Commit d37faf3

Browse files
authored
fix: update beet.contrib.livereload to work in 1.19+ (#447)
1 parent b35237f commit d37faf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beet/contrib/livereload.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def livereload_server(connection: Connection[Tuple[Optional[str], Path], None]):
119119

120120
@log_watcher.tail(log_file_path)
121121
def _(args: JsonDict):
122-
if LIVERELOAD_REGEX.match(args["message"]) and livereload_path:
122+
if LIVERELOAD_REGEX.search(args["message"]) and livereload_path:
123123
remove_path(livereload_path)
124124

125125

@@ -138,7 +138,7 @@ def __init__(self):
138138
def tail(self, path: FileSystemPath) -> Callable[[LogCallback], None]: ...
139139

140140
@overload
141-
def tail(self, path: FileSystemPath, callback: LogCallback): ...
141+
def tail(self, path: FileSystemPath, callback: LogCallback) -> None: ...
142142

143143
def tail(
144144
self,

0 commit comments

Comments
 (0)