mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
CCS: error handling
This commit is contained in:
parent
6638a273ef
commit
cb4087dd25
1 changed files with 11 additions and 6 deletions
|
@ -183,6 +183,7 @@ class FeatherApi:
|
|||
if ccs and app.config["DEBUG"]:
|
||||
return ccs
|
||||
|
||||
try:
|
||||
content = await httpget(f"https://ccs.getmonero.org/index.php/projects", json=True)
|
||||
|
||||
data = [p for p in content["data"] if p["state"] == "FUNDING-REQUIRED" and p['address'] != '8Bok6rt3aCYE41d3YxfMfpSBD6rMDeV9cchSM99KwPFi5GHXe28pHXcYzqtej52TQJT4M8zhfyaoCXDoioR7nSfpC7St48K']
|
||||
|
@ -191,6 +192,10 @@ class FeatherApi:
|
|||
|
||||
await cache.set("ccs", json.dumps(data))
|
||||
return data
|
||||
except Exception as ex:
|
||||
app.logger.error(f"Error parsing CCS data: {ex}")
|
||||
|
||||
return ccs
|
||||
|
||||
@staticmethod
|
||||
async def after_ccs(data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue