SathvikGanta
commited on
Update svg_to_pdf.py
Browse files- svg_to_pdf.py +1 -2
svg_to_pdf.py
CHANGED
@@ -9,6 +9,5 @@ def convert_svg_to_pdf(svg_path, pdf_path):
|
|
9 |
"""
|
10 |
try:
|
11 |
cairosvg.svg2pdf(url=svg_path, write_to=pdf_path)
|
12 |
-
print(f"Successfully converted SVG to PDF: {pdf_path}")
|
13 |
except Exception as e:
|
14 |
-
|
|
|
9 |
"""
|
10 |
try:
|
11 |
cairosvg.svg2pdf(url=svg_path, write_to=pdf_path)
|
|
|
12 |
except Exception as e:
|
13 |
+
raise ValueError(f"Error converting SVG to PDF: {str(e)}")
|