mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 22:12:53 +01:00
writing warning message to stderr
This commit is contained in:
parent
253d4c76d0
commit
131227eff4
1 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,7 @@
|
|||
from __future__ import division, absolute_import, print_function
|
||||
|
||||
import confuse
|
||||
from sys import stderr
|
||||
|
||||
__version__ = u'1.5.0'
|
||||
__author__ = u'Adrian Sampson <adrian@radbox.org>'
|
||||
|
|
@ -34,7 +35,8 @@ class IncludeLazyConfig(confuse.LazyConfig):
|
|||
except confuse.NotFoundError:
|
||||
pass
|
||||
except confuse.ConfigReadError as err:
|
||||
print("Warning! Missing configuration file! {}".format(err.reason))
|
||||
stderr.write("Configuration 'import' failed: {}"
|
||||
.format(err.reason))
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue