Skip to content

Commit 1b95a97

Browse files
committed
fix wait_init for raise exception better.
1 parent 1e74b11 commit 1b95a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/_topic_writer/topic_writer_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ async def wait_init(self) -> PublicWriterInitInfo:
208208
res = done.pop() # type: asyncio.Future
209209
res_val = res.result()
210210

211-
if isinstance(res_val, Exception):
211+
if isinstance(res_val, BaseException):
212212
raise res_val
213213

214214
return res_val

0 commit comments

Comments
 (0)