Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapped out getheader to headers.get so the script does not error when getting the games xml file #3

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

TeaMonkey
Copy link

For whatever reason I could not get this script to work in its orignal form.

I'm not a python dev so I don't know of the best way to do this or even if this PR is done correctly. For whatever it is worth this change allowed the script to work for me.

I came to be using this script because the original one I was using started failing due to XML parsing bugs: eddie3#63

@sairuk
Copy link
Owner

sairuk commented Mar 28, 2022

What version of python was this run against when it failed?

@TeaMonkey
Copy link
Author

TeaMonkey commented Mar 28, 2022

2.7.15 and it was this doc I used as the basis for the change: https://docs.python-requests.org/en/latest/user/quickstart/#response-headers

Note: I'm not sure if the script is using this module or not, the documentaiton appears to match...

@sairuk sairuk merged commit e7af544 into sairuk:master Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants