Skip to content

Commit

Permalink
Fix incorrect exception type.
Browse files Browse the repository at this point in the history
  • Loading branch information
twisteroidambassador committed Dec 9, 2020
1 parent 29b5ada commit da4c16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ptadapter/adapters.py
Expand Up @@ -405,7 +405,7 @@ def _process_stdout_line(
self._logger.debug('PT initialization complete')
for fut in self._transports.values():
if not fut.done():
fut.set_exception('PT ignored transport')
fut.set_exception(RuntimeError('PT ignored transport'))
else:
super()._process_stdout_line(kw, optargs)

Expand Down Expand Up @@ -583,7 +583,7 @@ def _process_stdout_line(
self._logger.debug('PT initialization complete')
for fut in self._transports.values():
if not fut.done():
fut.set_exception('PT ignored transport')
fut.set_exception(RuntimeError('PT ignored transport'))
else:
super()._process_stdout_line(kw, optargs)

Expand Down

0 comments on commit da4c16a

Please sign in to comment.