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

wlc download failed even if package is downloaded... #653

Closed
2 tasks done
jeromelefeuvre opened this issue Sep 17, 2024 · 2 comments
Closed
2 tasks done

wlc download failed even if package is downloaded... #653

jeromelefeuvre opened this issue Sep 17, 2024 · 2 comments
Assignees
Labels
bug Something is broken.

Comments

@jeromelefeuvre
Copy link

Describe the issue

After using download command, it "failed"...

I tried to debug and I have that:

$ wlc download -o locale
> /Users/jeromelefeuvre/.pyenv/versions/3.8.17/envs/norman3.8/lib/python3.8/site-packages/wlc/main.py(695)run()
    694                     import ipdb;ipdb.set_trace()
--> 695                     self.println(
    696                         f"downloaded translations for component: {self.args.object[0]}"

ipdb> self.args.object
[]
ipdb> self.args
Namespace(command='download', config=None, config_section='weblate', convert=None, debug=False, format='text', key=None, no_glossary=False, object=[], output='locale', url=None)
ipdb> component.slug
'mycomponent'

Object seems to retrieve component but not do it via self.args.object but fine with component.slug...

I already tried

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

Steps to reproduce the behavior

  1. wlc downloads -o locales

Expected behavior

Suppose to not crash and print downloaded translations for component ...

Screenshots

No response

Exception traceback

$ wlc download -o locale
Traceback (most recent call last):
  File "/Users/jeromelefeuvre/.pyenv/versions/norman3.8/bin/wlc", line 8, in <module>
    sys.exit(main())
  File "/Users/jeromelefeuvre/.pyenv/versions/3.8.17/envs/norman3.8/lib/python3.8/site-packages/wlc/main.py", line 816, in main
    command.run()
  File "/Users/jeromelefeuvre/.pyenv/versions/3.8.17/envs/norman3.8/lib/python3.8/site-packages/wlc/main.py", line 695, in run
    f"downloaded translations for component: {self.args.object[0]}"
IndexError: list index out of range


### Additional context

_No response_
@nijel
Copy link
Member

nijel commented Sep 18, 2024

It seems like an omission in eba378a.

@nijel nijel added the bug Something is broken. label Sep 18, 2024
@nijel nijel self-assigned this Sep 18, 2024
@nijel nijel closed this as completed in 62f11db Sep 18, 2024
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

No branches or pull requests

2 participants