Skip to content

Commit 290ed44

Browse files
committed
fixed http_get to return http_get with params in event of 429 code
1 parent 5449152 commit 290ed44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This module aims to closely mirror the methods provided by the xmlstats API in t
88

99
##Installing
1010
```pip install xmlstats-py```
11+
Compatible with Python 2.7, 3.2+
1112

1213
##Usage
1314
Xmlstats can return "objectified" data, in which nested JSON objects from the xmlstats API are accessible as attributes, or it can return data in native python objects, as if parsed with ```json.load()```.

xmlstats/xmlstats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def http_get(self, url, params=None):
6262
Waiting {} seconds to make new request'''.format(delta)
6363
)
6464
time.sleep(delta)
65-
return self.http_get(url)
65+
return self.http_get(url, params)
6666
else:
6767
r.raise_for_status()
6868

0 commit comments

Comments
 (0)