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

AttributeError: 'str' object has no attribute 'removesuffix' #1

Closed
Egida opened this issue Feb 9, 2022 · 1 comment
Closed

AttributeError: 'str' object has no attribute 'removesuffix' #1

Egida opened this issue Feb 9, 2022 · 1 comment
Labels
wontfix This will not be worked on

Comments

@Egida
Copy link

Egida commented Feb 9, 2022

Searching for free Shodan api keys in public Github repositories.
Please keep in mind that this will take a few hours!

Traceback (most recent call last):
File "gitshodankey.py", line 98, in
keywordList.append(l.removesuffix("\n"))
AttributeError: 'str' object has no attribute 'removesuffix'

@Orobas42
Copy link
Owner

removesuffix is a python 3.9+ method in str. In previous versions, str doesn't have a removesuffix attribute.
Please check if python is up to date.

@Orobas42 Orobas42 added the wontfix This will not be worked on label Mar 8, 2022
@Orobas42 Orobas42 pinned this issue Mar 8, 2022
@Orobas42 Orobas42 changed the title removesuffix / AttributeError: 'str' object has no attribute 'removesuffix' Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants