[SCM] morituri/master: handle exceptions when opening device
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:14 UTC 2014
The following commit has been merged in the master branch:
commit ace1a096bf9dfa74f21db659c1c52a30899f4b56
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Wed Dec 9 17:37:19 2009 +0000
handle exceptions when opening device
diff --git a/morituri/rip/offset.py b/morituri/rip/offset.py
index f9aa971..261a96d 100644
--- a/morituri/rip/offset.py
+++ b/morituri/rip/offset.py
@@ -80,7 +80,12 @@ CD in the AccurateRip database."""
# first get the Table Of Contents of the CD
t = cdrdao.ReadTOCTask(device=self.options.device)
- runner.run(t)
+ try:
+ runner.run(t)
+ except cdrdao.DeviceOpenException, e:
+ self.error(e.msg)
+ return 3
+
table = t.table
self.debug("CDDB disc id: %r", table.getCDDBDiscId())
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list