Update api.py

This commit is contained in:
Sorrow446 2020-02-09 22:40:37 +00:00 committed by GitHub
parent b7807e0686
commit c514b61c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ class Client:
regex = r'digital_comic_id : "(([0-9]{5}))"'
return re.search(regex, r.text).group(1)
def make_call(self, epoint, json=None, params=None):
r = self.session.get(self.base+epoint, json=json, params=params)
def make_call(self, epoint, params=None):
r = self.session.get(self.base+epoint, params=params)
r.raise_for_status()
return r