diff --git a/pptx2md/parser.py b/pptx2md/parser.py index edcc10a..44e7496 100644 --- a/pptx2md/parser.py +++ b/pptx2md/parser.py @@ -219,7 +219,7 @@ def process_shapes(config: ConversionConfig, current_shapes, slide_id: int) -> L pic = process_picture(config, shape, slide_id) if pic: results.append(pic) - except AttributeError as e: + except (AttributeError, ValueError) as e: logger.warning(f'Failed to process picture, skipped: {e}') elif shape.shape_type == MSO_SHAPE_TYPE.TABLE: table = process_table(config, shape, slide_id)