Simple warning on missing (included) configuration file.
@@ -33,13 +33,12 @@ class IncludeLazyConfig(confuse.LazyConfig):
try:
for view in self['include']:
filename = view.as_filename()
- if os.path.isfile(filename):
self.set_file(filename)
- else:
- raise FileNotFoundError("Warning! Configuration file({0}) "
- "does not exist!".format(filename))
except confuse.NotFoundError:
pass
+ except confuse.ConfigReadError as err:
+ print("Warning! Missing configuration file! {}".format(err.reason))
+ pass
config = IncludeLazyConfig('beets', __name__)
