Update app.py
Browse files
app.py
CHANGED
|
@@ -461,7 +461,7 @@ def index():
|
|
| 461 |
print(f"Attempting PDF conversion for {docx_filepath}...")
|
| 462 |
try:
|
| 463 |
# Check API key again before conversion attempt
|
| 464 |
-
if not convertapi.api_credentials
|
| 465 |
flash("La clé API pour ConvertAPI n'est pas configurée correctement. Impossible de générer le PDF.", "error")
|
| 466 |
# Optionally send the docx as fallback?
|
| 467 |
# return send_file(docx_filepath, as_attachment=True, download_name=docx_filename)
|
|
|
|
| 461 |
print(f"Attempting PDF conversion for {docx_filepath}...")
|
| 462 |
try:
|
| 463 |
# Check API key again before conversion attempt
|
| 464 |
+
if not convertapi.api_credentials:
|
| 465 |
flash("La clé API pour ConvertAPI n'est pas configurée correctement. Impossible de générer le PDF.", "error")
|
| 466 |
# Optionally send the docx as fallback?
|
| 467 |
# return send_file(docx_filepath, as_attachment=True, download_name=docx_filename)
|