From 8e17d445ff3b814d6d3c4fba66efd020539ba5f1 Mon Sep 17 00:00:00 2001 From: Georg Schwitalla Date: Sat, 24 Oct 2020 12:47:59 +0200 Subject: [PATCH] Added a check if config_out was empty --- beets/ui/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 49c4b4dc6..2962362a1 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -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.