Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 972a76a

Browse files
committed
Don't use break inside finally.
It swallows exceptions.
1 parent ad06e5c commit 972a76a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

watch/watch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def stream(self, func, *args, **kwargs):
151151
if self.resource_version is not None:
152152
kwargs['resource_version'] = self.resource_version
153153
else:
154-
break
154+
self._stop = True
155155

156156
if timeouts or self._stop:
157157
break

0 commit comments

Comments
 (0)