mirror of
https://gitlab.com/0xDEAD10CC/pycoindroid
synced 2025-07-05 04:25:38 -07:00
update
This commit is contained in:
parent
5347429318
commit
40dde737f4
1 changed files with 4 additions and 6 deletions
|
@ -35,13 +35,11 @@ class CurrencyTask(CoindroidAPITask):
|
|||
continue
|
||||
if self.currentTransaction:
|
||||
self.lastTransaction = self.currentTransaction.copy()
|
||||
self.currentTransaction = request.json()
|
||||
if not request.json():
|
||||
self.logger.error("Response is empty!")
|
||||
elif len(request.json()) < 1:
|
||||
self.logger.error("Response is empty!")
|
||||
else:
|
||||
try:
|
||||
self.currentTransaction = request.json()[0]
|
||||
except:
|
||||
self.logger.exception("Unable to get current transaction!")
|
||||
continue
|
||||
self.logger.info("Retrieved currency from Coindroids...")
|
||||
self.logger.debug("{}".format(self.currentTransaction.get("last_ingested")))
|
||||
if not self.lastTransaction:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue