Skip to content

Commit c27d8d3

Browse files
committed
Fix flake8 error
1 parent 4b8e686 commit c27d8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alpaca_trade_api/stream2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def _connect(self):
3131
r = r.decode('utf-8')
3232
msg = json.loads(r)
3333

34-
if not 'data' in msg or msg['data']['status'] != 'authorized':
34+
if 'data' not in msg or msg['data']['status'] != 'authorized':
3535
raise ValueError(
3636
("Invalid Alpaca API credentials, Failed to authenticate: {}"
3737
.format(msg))

0 commit comments

Comments
 (0)