mirror of
https://github.com/beetbox/beets.git
synced 2025-12-20 07:34:28 +01:00
track down a few more misuses of confit
This commit is contained in:
parent
a50397f2a4
commit
15add196f2
4 changed files with 4 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import:
|
|||
write: yes
|
||||
copy: yes
|
||||
move: no
|
||||
delete: no
|
||||
resume: ask
|
||||
incremental: no
|
||||
quiet_fallback: skip
|
||||
|
|
|
|||
|
|
@ -841,7 +841,7 @@ def manipulate_files(session):
|
|||
# old paths.
|
||||
session.lib.move(item, True)
|
||||
|
||||
if config['import']['write '] and task.should_write_tags():
|
||||
if config['import']['write'] and task.should_write_tags():
|
||||
item.write()
|
||||
|
||||
# Save new paths.
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ class Item(object):
|
|||
read_path = normpath(read_path)
|
||||
try:
|
||||
f = MediaFile(syspath(read_path))
|
||||
except Exception:
|
||||
except Exception as exc:
|
||||
log.error(u'failed reading file: {0}'.format(
|
||||
displayable_path(read_path))
|
||||
)
|
||||
|
|
|
|||
|
|
@ -670,7 +670,7 @@ def main(args=None, configfh=None):
|
|||
exc.log(log)
|
||||
sys.exit(1)
|
||||
except confit.ConfigError as exc:
|
||||
FIXME
|
||||
log.error(u'configuration error: {0}'.format(exc))
|
||||
except IOError as exc:
|
||||
if exc.errno == errno.EPIPE:
|
||||
# "Broken pipe". End silently.
|
||||
|
|
|
|||
Loading…
Reference in a new issue