mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-01-31 10:55:44 +01:00
Here is the first batch of modules, which are needed for converting several formats to LRF. Some of the logic has been change, more cleanups will follow.
24 lines
590 B
Python
24 lines
590 B
Python
#!/usr/bin/env python2
|
|
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai
|
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
|
|
__docformat__ = 'restructuredtext en'
|
|
|
|
from ebook_converter.ebooks import DRMError as _DRMError
|
|
|
|
|
|
class InvalidBook(ValueError):
|
|
pass
|
|
|
|
|
|
class DRMError(_DRMError):
|
|
|
|
def __init__(self):
|
|
super(DRMError, self).__init__(_('This file is locked with DRM. It cannot be edited.'))
|
|
|
|
|
|
class MalformedMarkup(ValueError):
|
|
pass
|