SathvikGanta commited on
Commit
b61fcfd
·
verified ·
1 Parent(s): c2df858

Update svg_to_pdf.py

Browse files
Files changed (1) hide show
  1. 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
- print(f"Error converting SVG to PDF: {e}")
 
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)}")