complete if exception
This commit is contained in:
parent
4693ae5e80
commit
a7008b3550
1 changed files with 4 additions and 3 deletions
|
|
@ -239,9 +239,10 @@ class Subscription:
|
||||||
|
|
||||||
info_json_listener.start()
|
info_json_listener.start()
|
||||||
|
|
||||||
yield
|
try:
|
||||||
|
yield
|
||||||
info_json_listener.complete = True
|
finally:
|
||||||
|
info_json_listener.complete = True
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def _subscription_download_context_managers(self) -> None:
|
def _subscription_download_context_managers(self) -> None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue