Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

Commit c262d0d

Browse files
committed
#6: Fix the syntax for hasattr
1 parent 86a1846 commit c262d0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exporter/connectors/ccxt_connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def __fetch_ledger(self, account, **kw):
235235
ledger = fetched_ledger
236236

237237
if (
238-
self.__exchange.hasattr('last_json_response')
238+
hasattr(self.__exchange, 'last_json_response')
239239
and self.__exchange.last_json_response.get('pagination')
240240
and self.__exchange.last_json_response['pagination']['next_starting_after']
241241
):
@@ -244,7 +244,7 @@ def __fetch_ledger(self, account, **kw):
244244
starting_after=self.__exchange.last_json_response['pagination']['next_starting_after'],
245245
)
246246
if (
247-
self.__exchange.hasattr('last_json_response')
247+
hasattr(self.__exchange, 'last_json_response')
248248
and self.__exchange.last_json_response.get('result')
249249
and self.__exchange.last_json_response['result'].get('count')
250250
and int(self.__exchange.last_json_response['result']['count']) > len(ledger)

0 commit comments

Comments
 (0)