fix string conversion error

This commit is contained in:
fabolous005 2025-12-30 02:47:21 +01:00
parent 518801e40b
commit 1858adfe13

View File

@ -58,7 +58,7 @@ def gitea_webhook():
try:
subprocess.run([script_path, *args], check=True)
except subprocess.CalledProcessError as e:
logger.error(repo_name + " " + event_type + " script failed with exit code: " + e)
logger.error(f"{repo_name} {event_type} script failed with exit code: {e}")
return jsonify({"error": f"Script failed: {e}"}), 500
logger.info("Script executed successfully")