diff --git a/whipper/command/cd.py b/whipper/command/cd.py index 3a7d38a0..c76ee037 100644 --- a/whipper/command/cd.py +++ b/whipper/command/cd.py @@ -144,7 +144,8 @@ def do(self): return -1 self.program.result.isCdr = cdrdao.DetectCdr(self.device) - if self.program.result.isCdr and not getattr(self.options, 'cdr', False): + if self.program.result.isCdr and \ + not getattr(self.options, 'cdr', False): logger.critical("inserted disc seems to be a CD-R, " "--cdr not passed") return -1 @@ -307,9 +308,10 @@ def add_arguments(self): help="whether to continue ripping if " "the CD is unknown", default=False) self.parser.add_argument('--cdr', - action="store_true", dest="cdr", - help="whether to continue ripping if the disc is a CD-R", - default=False) + action="store_true", dest="cdr", + help="whether to continue ripping if " + "the disc is a CD-R", + default=False) def handle_arguments(self): self.options.output_directory = os.path.expanduser( diff --git a/whipper/program/cdrdao.py b/whipper/program/cdrdao.py index c919d650..e0da15c1 100644 --- a/whipper/program/cdrdao.py +++ b/whipper/program/cdrdao.py @@ -59,6 +59,7 @@ def DetectCdr(device): else: return True + def version(): """ Return cdrdao version as a string.