mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 18:13:17 +01:00
Don't crash when no argument is given
This commit is contained in:
parent
fd2c57f736
commit
054488e1ab
1 changed files with 2 additions and 1 deletions
|
|
@ -924,7 +924,8 @@ def _raw_main(args, lib=None):
|
|||
# Special case for the `config --edit` command: bypass _setup so
|
||||
# that an invalid configuration does not prevent the editor from
|
||||
# starting.
|
||||
if subargs[0] == 'config' and ('-e' in subargs or '--edit' in subargs):
|
||||
if subargs and subargs[0] == 'config' \
|
||||
and ('-e' in subargs or '--edit' in subargs):
|
||||
from beets.ui.commands import config_edit
|
||||
return config_edit()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue