Commit 2bff682
authored
[scripts/init] Fix error running with default values (#8583)
Fixes:
```sh
python scripts/init.py newsite https://newsite.com
# [INFO] gallery_dl/extractor/newsite.py
# [ERROR] TypeError: 'NoneType' object is not iterable
# Traceback (most recent call last):
# File "/gallery-dl/scripts/init.py", line 58, in init_extractor
# fp.write(func(args))
# ^^^^^^^^^^
# File "/gallery-dl/scripts/init.py", line 88, in generate_module
# {generate_extractors(args)}\
# ^^^^^^^^^^^^^^^^^^^^^^^^^
# File "/gallery-dl/scripts/init.py", line 108, in generate_extractors_basic
# for subcat in args.subcategories:
# TypeError: 'NoneType' object is not iterable
# [INFO] gallery_dl/extractor/__init__.py
# [INFO] test/results/newsite.py
```1 parent 7b05995 commit 2bff682
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
0 commit comments