This commit is contained in:
0xDEAD10CC 2017-07-29 17:16:33 -07:00 committed by Steve Bouché
parent 5347429318
commit 40dde737f4

View file

@ -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: