mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
handle "broken pipe" error (#204)
This commit is contained in:
parent
a7b7cb69c0
commit
52239cf900
2 changed files with 8 additions and 0 deletions
1
NEWS
1
NEWS
|
|
@ -35,6 +35,7 @@
|
|||
* Fix an issue that was causing mpdupdate to run twice for every album.
|
||||
* Fix a bug that caused release dates/years not to be fetched.
|
||||
* Fix a crasher when setting MBIDs on MP3s file metadata.
|
||||
* Fix a "broken pipe" error when piping beets' standard output.
|
||||
* A better error message is given when the database file is unopenable.
|
||||
|
||||
1.0b8
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import sys
|
|||
from difflib import SequenceMatcher
|
||||
import logging
|
||||
import sqlite3
|
||||
import errno
|
||||
|
||||
from beets import library
|
||||
from beets import plugins
|
||||
|
|
@ -607,3 +608,9 @@ def main(args=None, configfh=None):
|
|||
except UserError, exc:
|
||||
message = exc.args[0] if exc.args else None
|
||||
subcommand.parser.error(message)
|
||||
except IOError, exc:
|
||||
if exc.errno == errno.EPIPE:
|
||||
# "Broken pipe". End silently.
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Reference in a new issue