Skip to content

Commit

Permalink
MAINT: PEP8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
lacabra committed Jul 11, 2018
1 parent 4baf859 commit 8725194
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion catalyst/exchange/ccxt/ccxt_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_candle_frequencies(self, data_frequency=None):

frequencies.append(freq)

except Exception as e:
except Exception:
log.warn(
'candle frequencies not available for exchange {}'.format(
self.name
Expand Down
2 changes: 1 addition & 1 deletion catalyst/exchange/exchange_asset_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def retrieve_asset(self, sid, default_none=False):
break

exchange = self.exchanges[exchange_name]
assets = [asset for asset in exchange.assets if asset.sid == sid]
assets = [a for a in exchange.assets if a.sid == sid]
if assets:
asset = assets[0]

Expand Down
2 changes: 1 addition & 1 deletion catalyst/utils/run_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def choose_loader(column):
)

data = DataPortalExchangeBacktest(
exchange_names=[exchange_name for exchange_name in exchanges],
exchange_names=[ex_name for ex_name in exchanges],
asset_finder=None,
trading_calendar=open_calendar,
first_trading_day=start,
Expand Down
4 changes: 2 additions & 2 deletions tests/exchange/test_ccxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def test_create_order_timeout_trade(self):
observed_fetchTradeOrder_None = self.exchange.create_order(
asset, amount, is_buy, style)
print(observed_fetchTradeOrder_None)
except ExchangeRequestError as e:
except ExchangeRequestError:
pass

def test_process_order_timeout(self):
Expand Down Expand Up @@ -420,7 +420,7 @@ def test_process_order_timeout(self):
try:
observed_transactions = self.exchange.process_order(order)
print(observed_transactions)
except ExchangeRequestError as e:
except ExchangeRequestError:
pass

# def test_order(self):
Expand Down

0 comments on commit 8725194

Please sign in to comment.