mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-15 18:20:37 +08:00
fix: error handling in PR processing logic
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
import ast
|
import ast
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import uvicorn
|
import uvicorn
|
||||||
@ -87,6 +88,7 @@ def should_process_pr_logic(data) -> bool:
|
|||||||
return False
|
return False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
get_logger().error(f"Failed 'should_process_pr_logic': {e}")
|
get_logger().error(f"Failed 'should_process_pr_logic': {e}")
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@router.post("/")
|
@router.post("/")
|
||||||
|
Reference in New Issue
Block a user