mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Raising error on missing configuration file inclusion
This commit is contained in:
parent
bc53695f24
commit
d2e32a6b20
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ class IncludeLazyConfig(confuse.LazyConfig):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue