Libraries refactor and add some sinks #4
|
@ -345,6 +345,8 @@ class Agora(object):
|
||||||
public_ads = public_ad_dict_btc[currency.lower()]
|
public_ads = public_ad_dict_btc[currency.lower()]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
|
if not public_ads:
|
||||||
|
continue
|
||||||
if xmr:
|
if xmr:
|
||||||
if asset == "XMR":
|
if asset == "XMR":
|
||||||
new_margin = self.autoprice(public_ads, currency)
|
new_margin = self.autoprice(public_ads, currency)
|
||||||
|
|
|
@ -46,7 +46,11 @@ class Transactions(object):
|
||||||
inside = data["data"]
|
inside = data["data"]
|
||||||
|
|
||||||
txid = inside["id"]
|
txid = inside["id"]
|
||||||
txtype = inside["type"]
|
try:
|
||||||
|
txtype = inside["type"]
|
||||||
|
except KeyError:
|
||||||
|
self.log.error("Typeless event: {id}", id=txid)
|
||||||
|
return
|
||||||
if txtype == "card_payment":
|
if txtype == "card_payment":
|
||||||
self.log.info("Ignoring card payment: {id}", id=txid)
|
self.log.info("Ignoring card payment: {id}", id=txid)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue