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 'xmlelement' #9010

Closed
2 tasks done
khrlzhfr opened this issue Mar 29, 2023 · 1 comment · Fixed by #9012
Closed
2 tasks done

AttributeError 'NoneType' object has no attribute 'xmlelement' #9010

khrlzhfr opened this issue Mar 29, 2023 · 1 comment · Fixed by #9012
Assignees
Labels
bug Something is broken.
Milestone

Comments

@khrlzhfr
Copy link
Contributor

khrlzhfr commented Mar 29, 2023

Describe the issue

I am translating an ODT document and have VCS enabled for this component. It can't commit to VCS and keep returning the following error:

AttributeError at /commit/imap/state-of-internet-censorship-indonesia-2022/

'NoneType' object has no attribute 'xmlelement'

Request Method: POST

Request URL: https://l10n.space/commit/imap/state-of-internet-censorship-indonesia-2022/

Django Version: 4.1.7

Exception Type: AttributeError

Exception Value:
'NoneType' object has no attribute 'xmlelement'

Exception Location: /usr/local/lib/python3.11/site-packages/weblate/formats/ttkit.py, line 612, in get_unit_node

Raised during: weblate.trans.views.git.commit_component

Python Executable: /usr/local/bin/python

Python Version: 3.11.2

Python Path:

['/',
 '/usr/local/lib/python3.11/site-packages/git/ext/gitdb',
 '/',
 '/usr/local/bin',
 '/usr/local/lib/python311.zip',
 '/usr/local/lib/python3.11',
 '/usr/local/lib/python3.11/lib-dynload',
 '/usr/local/lib/python3.11/site-packages',
 '/app/data/python']

Server time: Tue, 28 Mar 2023 19:31:28 +0000

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

  1. Go to '...'
  2. Scroll down to '...'
  3. Click on '...'
  4. See error

Expected behavior

Able to commit to VCS and push to Gitlab/Github.

Screenshots

screencapture-mail-google-mail-u-1-2023-03-29-15_40_18

Exception traceback

See above.

How do you run Weblate?

Docker container

Weblate versions

4.16.4

Weblate deploy checks

No response

Additional context

No response

@nijel nijel added the bug Something is broken. label Mar 30, 2023
@nijel nijel added this to the 4.17 milestone Mar 30, 2023
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants