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: 'NoneType' object has no attribute 'getText' #1

Closed
KenyOS opened this issue Mar 30, 2022 · 1 comment
Closed

AttributeError: 'NoneType' object has no attribute 'getText' #1

KenyOS opened this issue Mar 30, 2022 · 1 comment

Comments

@KenyOS
Copy link
Contributor

KenyOS commented Mar 30, 2022

Oi, seu script funciona muito bem, belo trabalho!
Eu estou querendo usar seu script pra alimentar um sistema externo que tenho e quando rodei na pasta XML, aparece o seguinte.


Traceback (most recent call last):
  File "C:\Users\kenyo\Documents\XML\app.py", line 32, in <module>
    soup.find('dest').find('cnpj').getText(),
AttributeError: 'NoneType' object has no attribute 'getText'

Pelo que eu entendi o soup.find retorna Vazio e dá erro no getText(). Saberia uma solução para este problema?
Enquanto isso vou dar uma estudada em python, se achar uma solução retorno com PR.

@KenyOS
Copy link
Contributor Author

KenyOS commented Mar 30, 2022

#2

@KenyOS KenyOS closed this as completed Mar 30, 2022
g-adamante pushed a commit that referenced this issue Jul 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

No branches or pull requests

1 participant