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

Package not python 3 compatible #5

Open
BartBaddeley opened this issue Sep 7, 2015 · 4 comments
Open

Package not python 3 compatible #5

BartBaddeley opened this issue Sep 7, 2015 · 4 comments

Comments

@BartBaddeley
Copy link

The code uses the old style of exception handling. It appears that a small change

requests.exceptions.RequestException, e:    

to

requests.exceptions.RequestException as e:

on lines 52, 78 and 107 makes the code python 3.4 compatible using the anaconda distribution.

@ianozsvald
Copy link

Just to add - the old style exception support was extended to allow the new style in Python 2.6. The new-style (except X as y:) is supported in both Python 2.6, 2.7 and 3.0+ and this includes the soon-to-be-released Python 3.5. Python 2.5 was deprecated a while back, Python 2.6 was deprecated in 2013, Python 2.7 will be deprecated in 4 years (2020).

@johnfraney
Copy link

Sent in PR #6 to address this

@moseleyi
Copy link

moseleyi commented Jul 9, 2020

Thanks for this. I'm running Python 3.8 and not too familiar with scripts themselves but at least I could run it with your fix

@johnfraney
Copy link

@moseleyi Glad I could help!

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

No branches or pull requests

4 participants