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

Fix parsing different source formats #3

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Fix parsing different source formats #3

merged 1 commit into from
Nov 25, 2022

Conversation

d3QUone
Copy link
Owner

@d3QUone d3QUone commented Nov 25, 2022

Traceback (most recent call last):
  File "/Users/vladimirkasatkin/Developer/aiosqs/aiosqs/tests/test_receive_message.py", line 36, in test_parse_oneline_xml
    res = parse_xml_result_response(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/vladimirkasatkin/Developer/aiosqs/aiosqs/parser.py", line 78, in parse_xml_result_response
    elements = collect_elements(root=root, xpath=xpath)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/vladimirkasatkin/Developer/aiosqs/aiosqs/parser.py", line 27, in collect_elements
    value = elem.text.strip()
            ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'

@d3QUone d3QUone added the bug Something isn't working label Nov 25, 2022
@d3QUone d3QUone self-assigned this Nov 25, 2022
@d3QUone d3QUone merged commit c341a60 into master Nov 25, 2022
@d3QUone d3QUone deleted the fix-parser branch November 25, 2022 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant