mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-21 18:37:09 +01:00
Update advanced_search_wine.py
This commit is contained in:
@@ -111,6 +111,8 @@ class AdvancedSearchWine(DVMTaskInterface):
|
||||
headers = {'Content-type': 'application/x-www-form-urlencoded'}
|
||||
response = requests.get(url, headers=headers)
|
||||
#print(response.text)
|
||||
|
||||
try:
|
||||
ob = json.loads(response.text)
|
||||
data = ob['data']
|
||||
result_list = []
|
||||
@@ -120,6 +122,8 @@ class AdvancedSearchWine(DVMTaskInterface):
|
||||
result_list.append(e_tag.as_vec())
|
||||
except Exception as e:
|
||||
print("ERROR: " + str(e))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
return json.dumps(result_list)
|
||||
|
||||
Reference in New Issue
Block a user