Removed white-space sensitivity in the if-clause

This commit is contained in:
Sudo-kun 2020-10-25 11:02:12 +01:00
parent e898f4396e
commit e49ee7c686
2 changed files with 2 additions and 1 deletions

View file

@ -1691,7 +1691,7 @@ def config_func(lib, opts, args):
# Dump configuration.
else:
config_out = config.dump(full=opts.defaults, redact=opts.redact)
if config_out != '{}\n':
if config_out.strip() != '{}':
print_(util.text_string(config_out))
else:
print("Empty configuration")

View file

@ -7,6 +7,7 @@ Changelog
New features:
* When config is printed with no available configuration a new message is printed.
:bug: `3779`
* :doc:`/plugins/chroma`: Update file metadata after generating fingerprints through the `submit` command.
* :doc:`/plugins/lastgenre`: Added more heavy metal genres: https://en.wikipedia.org/wiki/Heavy_metal_genres to genres.txt and genres-tree.yaml
* :doc:`/plugins/subsonicplaylist`: import playlist from a subsonic server.