Hi! First of all many thanks for creating this awesome wrapper for the Riot Lol API! I followed your documentation and cassiopeia is really easy and "pythonic" to use :)
match_list = summoner.match_list()
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/dto/requests.py in make_request(request, method, params, payload, static, include_base, tournament)
87 try:
---> 88 content = limiter.call(execute_request, url, method, payload) if limiter else execute_request(url, method, payload)
89 return json.loads(content) if content else {}
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/type/api/rates.py in call(self, method, *args)
128 try:
--> 129 return method(*args) if method else None
130 except:
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/dto/requests.py in execute_request(url, method, payload)
123 request.add_header("Accept-Encoding", "gzip")
--> 124 response = urllib.request.urlopen(request)
125 content = response.read()
/home/cs/anaconda3/lib/python3.5/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
161 opener = _opener
--> 162 return opener.open(url, data, timeout)
163
/home/cs/anaconda3/lib/python3.5/urllib/request.py in open(self, fullurl, data, timeout)
470 meth = getattr(processor, meth_name)
--> 471 response = meth(req, response)
472
/home/cs/anaconda3/lib/python3.5/urllib/request.py in http_response(self, request, response)
580 response = self.parent.error(
--> 581 'http', request, response, code, msg, hdrs)
582
/home/cs/anaconda3/lib/python3.5/urllib/request.py in error(self, proto, *args)
508 args = (dict, 'default', 'http_error_default') + orig_args
--> 509 return self._call_chain(*args)
510
/home/cs/anaconda3/lib/python3.5/urllib/request.py in _call_chain(self, chain, kind, meth_name, *args)
442 func = getattr(handler, meth_name)
--> 443 result = func(*args)
444 if result is not None:
/home/cs/anaconda3/lib/python3.5/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
588 def http_error_default(self, req, fp, code, msg, hdrs):
--> 589 raise HTTPError(req.full_url, code, msg, hdrs, fp)
590
HTTPError: HTTP Error 503: Service Unavailable
During handling of the above exception, another exception occurred:
APIError Traceback (most recent call last)
<ipython-input-14-c9202207845b> in <module>()
----> 1 match_list = summoner.match_list()
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/type/core/common.py in curried(*args, **kwargs)
95 @functools.wraps(self.method)
96 def curried(*args, **kwargs):
---> 97 return self.method(obj, *args, **kwargs)
98 return curried
99
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/type/core/summoner.py in match_list(self, num_matches, begin_index, begin_time, end_time, champions, ranked_queues, seasons)
222 return list<MatchReference> the summoner's match history
223 """
--> 224 return cassiopeia.riotapi.get_match_list(self, num_matches, begin_index, begin_time, end_time, champions, ranked_queues, seasons)
225
226 @cassiopeia.type.core.common.immutablemethod
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/core/matchlistapi.py in get_match_list(summoner, num_matches, begin_index, begin_time, end_time, champions, ranked_queues, seasons)
47 seasons = [season.value for season in seasons] if isinstance(seasons, list) else seasons.value if seasons else None
48
---> 49 history = cassiopeia.dto.matchlistapi.get_match_list(summoner.id, num_matches, begin_index, begin_time, end_time, champion_ids, ranked_queues, seasons)
50
51 # Load required data if loading policy is eager
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/dto/matchlistapi.py in get_match_list(summoner_id, num_matches, begin_index, begin_time, end_time, champion_ids, ranked_queues, seasons)
35 params["seasons"] = ",".join(seasons) if isinstance(seasons, list) else str(seasons)
36
---> 37 return cassiopeia.type.dto.matchlist.MatchList(cassiopeia.dto.requests.get(request, params))
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/dto/requests.py in get(request, params, static, include_base, tournament)
39
40 def get(request, params={}, static=False, include_base=True, tournament=False):
---> 41 return make_request(request=request, method="GET", params=params, static=static, include_base=include_base, tournament=tournament)
42
43
/home/cs/anaconda3/lib/python3.5/site-packages/cassiopeia/dto/requests.py in make_request(request, method, params, payload, static, include_base, tournament)
98 return make_request(request, method, params, payload, static, include_base, tournament)
99 else:
--> 100 raise cassiopeia.type.api.exception.APIError("Server returned error {code} on call: {url}".format(code=e.code, url=url), e.code)
101
102
APIError: Server returned error 503 on call: https://euw.api.pvp.net/api/lol/euw/v2.2/matchlist/by-summoner/39991913?api_key=f16dc75b-6067-429e-81ba-f2025cf6e2c6