* morituri/rip/main.py:

Give a nice error message if cdrdao cannot read the disc.
	  Fixes #29.
This commit is contained in:
Thomas Vander Stichele
2011-05-22 15:24:14 +00:00
parent 1c6ec82df9
commit ddb70f32e4
2 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2011-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/main.py:
Give a nice error message if cdrdao cannot read the disc.
Fixes #29.
2011-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/program/cdparanoia.py:

View File

@@ -23,6 +23,14 @@ def main(argv):
sys.stderr.write('rip: error: missing dependency "%s"\n' %
e.exception.dependency)
return 255
# FIXME: move this exception
from morituri.program import cdrdao
if isinstance(e.exception, cdrdao.DeviceOpenException):
sys.stderr.write("""rip: error: cannot read CD from drive.
cdrdao says:
%s
""" % e.exception.msg)
return 255
raise
if ret is None: