fix string conversion error
This commit is contained in:
parent
518801e40b
commit
1858adfe13
2
main.py
2
main.py
@ -58,7 +58,7 @@ def gitea_webhook():
|
|||||||
try:
|
try:
|
||||||
subprocess.run([script_path, *args], check=True)
|
subprocess.run([script_path, *args], check=True)
|
||||||
except subprocess.CalledProcessError as e:
|
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
|
return jsonify({"error": f"Script failed: {e}"}), 500
|
||||||
|
|
||||||
logger.info("Script executed successfully")
|
logger.info("Script executed successfully")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user