mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 02:52:33 +01:00
Added a check if config_out was empty
This commit is contained in:
parent
013155a9d8
commit
8e17d445ff
1 changed files with 4 additions and 2 deletions
|
|
@ -1691,8 +1691,10 @@ def config_func(lib, opts, args):
|
|||
# Dump configuration.
|
||||
else:
|
||||
config_out = config.dump(full=opts.defaults, redact=opts.redact)
|
||||
print_(util.text_string(config_out))
|
||||
|
||||
if config_out != '{}\n':
|
||||
print_(util.text_string(config_out))
|
||||
else:
|
||||
print("Empty Configuration")
|
||||
|
||||
def config_edit():
|
||||
"""Open a program to edit the user configuration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue