ramonsaraiva / pubg-python

A python wrapper for the PUBG developer API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing unexpected response_headers to __init()__

glmn opened this issue · comments

Error in exceptions.py after PR #77
TypeError: __init__() got an unexpected keyword argument 'response_headers'

This error triggers in every APIError exceptions except RateLimitError due to passing response_headers to __init__()

You can reproduce it even with invalid API Key. It will crash with first error instead of raising an UnauthorizedError