fix: correct error handling in should_process_pr_logic to prevent processing on failure

This commit is contained in:
Abhinav Kumar
2025-07-09 23:59:07 +05:30
parent 6057812a20
commit 4ab97d8969

View File

@ -121,7 +121,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 allow_only_specific_folders logic: {e}") get_logger().error(f"Failed allow_only_specific_folders logic: {e}")
return True 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 False