@@ -416,8 +416,8 @@ class ContainerAware:
|
||||
"""
|
||||
if not hasattr(container, required_method):
|
||||
raise AttributeError(
|
||||
f"Container {
|
||||
type(container).__name__} must have a '{required_method}' method")
|
||||
f"Container {type(container).__name__} must have a '{required_method}' method"
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def _inherit_style(cls, container, style=None):
|
||||
|
||||
@@ -461,9 +461,8 @@ class EPUBReader:
|
||||
block._loaded_image = self.image_processor(block._loaded_image)
|
||||
except Exception as e:
|
||||
print(
|
||||
f"Warning: Image processing failed for image '{
|
||||
block.alt_text}': {
|
||||
str(e)}")
|
||||
f"Warning: Image processing failed for image '{block.alt_text}': {str(e)}"
|
||||
)
|
||||
# Continue with unprocessed image
|
||||
|
||||
def _process_content_images(self):
|
||||
|
||||
@@ -81,8 +81,8 @@ class Font:
|
||||
logger.debug(f"Font loading: assets_dir = {assets_dir}")
|
||||
logger.debug(f"Font loading: bundled_font_path = {bundled_font_path}")
|
||||
logger.debug(
|
||||
f"Font loading: bundled font exists = {
|
||||
os.path.exists(bundled_font_path)}")
|
||||
f"Font loading: bundled font exists = {os.path.exists(bundled_font_path)}"
|
||||
)
|
||||
|
||||
if os.path.exists(bundled_font_path):
|
||||
logger.info(f"Found bundled font at: {bundled_font_path}")
|
||||
|
||||
Reference in New Issue
Block a user