license_type = voucher.getlicensetype()
if license_type != "Purchase":
- raise Exception(("This book is licensed as {0}. "
- 'These tools are intended for use on purchased books.').format(license_type))
+ #raise Exception(("This book is licensed as {0}. "
+ # 'These tools are intended for use on purchased books.').format(license_type))
+ print("Warning: This book is licensed as {0}. "
+ "These tools are intended for use on purchased books. Continuing ...".format(license_type))
self.voucher = voucher
data406 = self.meta_array[406]
val406, = struct.unpack('>Q',data406)
if val406 != 0:
- raise DrmException("Cannot decode library or rented ebooks.")
+ print("Warning: This is a library or rented ebook ({1}). Continuing ...".format(val406))
+ #raise DrmException("Cannot decode library or rented ebooks.")
goodpids = []
# print("DEBUG ==== pidlist = ", pidlist)