Skip to content

Commit 0c609c8

Browse files
author
Shlomi Kushchi
authored
ci fix
1 parent 07c6354 commit 0c609c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

alpaca_trade_api/stream2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,8 @@ def run(self, initial_channels: List[str] = []):
291291
logging.info("Exiting on Interrupt")
292292
should_renew = False
293293
except Exception as e:
294-
m = f"error while consuming ws messages: " \
295-
f"{'consume cancelled' if isinstance(e, CancelledError) else e}"
296-
logging.error(m)
294+
m = 'consume cancelled' if isinstance(e, CancelledError) else e
295+
logging.error(f"error while consuming ws messages: {m}")
297296
loop.run_until_complete(self.close(should_renew))
298297
if loop.is_running():
299298
loop.close()

0 commit comments

Comments
 (0)