Skip to content

Commit 661f3ae

Browse files
committed
error in query_result_id throws exception #3
1 parent 3f2e2b5 commit 661f3ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

duneanalytics/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__title__ = 'duneanalytics'
33
__description__ = 'Unofficial library for Dune Analytics.'
44
__url__ = 'https://github.com/itzmestar/duneanalytics'
5-
__version__ = '1.0.3'
5+
__version__ = '1.0.4'
66
__build__ = 0x010001
77
__author__ = 'Tarique Anwer'
88
__author_email__ = '[email protected]'

duneanalytics/duneanalytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def query_result_id(self, query_id):
100100
if response.status_code == 200:
101101
data = response.json()
102102
print(data)
103-
if 'error' in data:
103+
if 'errors' in data:
104104
return None
105105
result_id = data.get('data').get('get_result').get('result_id')
106106
return result_id

0 commit comments

Comments
 (0)