From 3fd33aa2f1ffcf153063f037b174bdb37f27b5b1 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Jul 2018 14:00:43 +0000 Subject: [PATCH] update before pull --- network.py | 4 +++- price.py | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/network.py b/network.py index cdc1ffb..e732477 100644 --- a/network.py +++ b/network.py @@ -2,8 +2,10 @@ import sopel.module import requests import re +# networkurl = "http://node.marty.cf:18019/getinfo" # networkurl = "http://node.xmrbackb.one:18081/getinfo" -networkurl = "http://opennode.minemonero.pro:18081/getinfo" +# networkurl = "http://opennode.minemonero.pro:18081/getinfo" +networkurl = "http://node.xmr.pt:18081/getinfo" @sopel.module.commands('fork', 'forkening') def fork(bot, trigger): diff --git a/price.py b/price.py index e87b9ac..cff92c4 100644 --- a/price.py +++ b/price.py @@ -616,8 +616,11 @@ def tall(bot, trigger): finexjson = finexresult.json() except: finexjson = False - if finexjson: - stringtosend += "Bitfinex last: {0:,.2f}, vol: {1:,.1f} | ".format(float(finexjson['last_price']), float(finexjson['volume'])) + try: + if finexjson: + stringtosend += "Bitfinex last: {0:,.2f}, vol: {1:,.1f} | ".format(float(finexjson['last_price']), float(finexjson['volume'])) + except: + stringtosend += "Finex sucks | " # Bitthumb try: thumbresult = requests.get(thumbbtcurl)