Skip to content

Commit

Permalink
daxa-ai#514: remove ImportError from generator_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aram yegiazaryan committed Aug 30, 2024
1 parent f13be94 commit 0ab2f6b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pebblo/reports/html_to_pdf_generator/generator_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ def weasyprint_pdf_converter(source_html, output_path, search_path):
target=output_path, stylesheets=[CSS(search_path + "/index.css")]
)
return True, result
except ImportError:
error = """Could not import weasyprint package. Please install weasyprint and Pango to generate report using weasyprint.
Follow documentation for more details - https://daxa-ai.github.io/pebblo/installation"
"""
return False, error
except Exception as e:
return False, e

Expand Down

0 comments on commit 0ab2f6b

Please sign in to comment.