Added a check if config_out was empty
@@ -1691,8 +1691,10 @@ def config_func(lib, opts, args):
# Dump configuration.
else:
config_out = config.dump(full=opts.defaults, redact=opts.redact)
+ 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.
