[OSX] TypeError: argument of type 'NoneType' is not iterable
sbellver opened this issue · comments
Sergio Bellver Aliaga commented
Hi!
I'm on Mac, and I try to use this tool (thanks!)
- Clone repo from GitHub
- pip3 install -r requirements.txt
- vim .env (and write my API_KEY from DeepL free)
- python3 -m unittest discover --> Ok
- python3 main.py ~/git/myApp/src/i18n/es.json --locale en --output en.json
Traceback (most recent call last):
File "/Users/sbellver/git/json-deepl-translate/main.py", line 262, in <module>
main()
File "/Users/sbellver/git/json-deepl-translate/main.py", line 255, in main
results = get_strings_from_file(
File "/Users/sbellver/git/json-deepl-translate/main.py", line 87, in get_strings_from_file
return iterate_translate(
File "/Users/sbellver/git/json-deepl-translate/main.py", line 108, in iterate_translate
if key in skip:
TypeError: argument of type 'NoneType' is not iterable
Try with others like
python3 main.py ~/git/myApp/src/i18n/es.json --locale en --output en.json --indent 4 --sleep 0.5
with same result
Santiago Espinosa commented
Hi @sbellver
You are right, there was a bug with the skip
argument if it was not defined. It is now fixed.
Thanks for the issue.