mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
fix: error handling in PR processing logic
This commit is contained in:
parent
50c2578cfd
commit
e7268dd314
1 changed files with 2 additions and 0 deletions
|
|
@ -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("/")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue