We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CTRL-C
1 parent ffa2676 commit 1e811eaCopy full SHA for 1e811ea
1 file changed
src/render_engine_cli/event.py
@@ -124,9 +124,12 @@ def watch(self) -> None:
124
125
console.print(f"[yellow]Serving {self.output_path}[/yellow]")
126
while not self.stop_watcher():
127
- if self.dirs_to_watch:
128
- for _ in watchfiles.watch(*self.dirs_to_watch):
129
- self.rebuild()
+ try:
+ if self.dirs_to_watch:
+ for _ in watchfiles.watch(*self.dirs_to_watch):
130
+ self.rebuild()
131
+ except KeyboardInterrupt:
132
+ break
133
134
def __enter__(self):
135
"""Starting Context manager for the class"""
0 commit comments