From b8af77bdeaea63fdda69dd1bbd6f14cbd0d6c9b6 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 6 Mar 2014 11:03:41 -0800 Subject: [PATCH] changelog (& tiny tweak) for #567 --- beets/util/confit.py | 4 +++- docs/changelog.rst | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/beets/util/confit.py b/beets/util/confit.py index cd8c7f61d..cf8b36296 100644 --- a/beets/util/confit.py +++ b/beets/util/confit.py @@ -794,7 +794,9 @@ class Configuration(RootView): appdir = os.environ[self._env_var] appdir = os.path.abspath(os.path.expanduser(appdir)) if os.path.isfile(appdir): - raise ConfigError('%s must be a directory' % self._env_var) + raise ConfigError('{0} must be a directory'.format( + self._env_var + )) else: # Search platform-specific locations. If no config file is diff --git a/docs/changelog.rst b/docs/changelog.rst index 5e0411da8..6d1e06fdc 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -27,6 +27,8 @@ Fixes: with quotation marks in their names. Thanks again to Pedro Silva. * Fix a crash when importing with both of the :ref:`group_albums` and :ref:`incremental` options enabled. Thanks to geigerzaehler. +* Give a sensible error message when ``BEETSDIR`` points to a file. Thanks + again to geigerzaehler. 1.3.3 (February 26, 2014)