mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-20 05:46:31 +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'}
|
headers = {'Content-type': 'application/x-www-form-urlencoded'}
|
||||||
response = requests.get(url, headers=headers)
|
response = requests.get(url, headers=headers)
|
||||||
#print(response.text)
|
#print(response.text)
|
||||||
|
|
||||||
|
try:
|
||||||
ob = json.loads(response.text)
|
ob = json.loads(response.text)
|
||||||
data = ob['data']
|
data = ob['data']
|
||||||
result_list = []
|
result_list = []
|
||||||
@@ -120,6 +122,8 @@ class AdvancedSearchWine(DVMTaskInterface):
|
|||||||
result_list.append(e_tag.as_vec())
|
result_list.append(e_tag.as_vec())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("ERROR: " + str(e))
|
print("ERROR: " + str(e))
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
|
||||||
|
|
||||||
return json.dumps(result_list)
|
return json.dumps(result_list)
|
||||||
|
|||||||
Reference in New Issue
Block a user