track down a few more misuses of confit

This commit is contained in:
Adrian Sampson 2012-10-26 21:00:57 -07:00
parent a50397f2a4
commit 15add196f2
4 changed files with 4 additions and 3 deletions

View file

@ -5,6 +5,7 @@ import:
write: yes
copy: yes
move: no
delete: no
resume: ask
incremental: no
quiet_fallback: skip

View file

@ -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.

View file

@ -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))
)

View file

@ -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.