diff --git a/main.py b/main.py index 329e56b..1b45445 100644 --- a/main.py +++ b/main.py @@ -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")