Update pr_agent/servers/bitbucket_server_webhook.py

Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
This commit is contained in:
Abhinav Kumar
2025-07-12 22:39:18 +05:30
committed by GitHub
parent efdb0f5744
commit 4a8e9b79e8

View File

@ -119,13 +119,9 @@ def should_process_pr_logic(data) -> bool:
if all_files_outside:
get_logger().info(f"Ignoring PR because all files {changed_files} are outside allowed folders {allowed_folders}")
return False
except Exception as e:
get_logger().error(f"Failed allow_only_specific_folders logic: {e}")
# Continue processing PR when folder check fails
pass
except Exception as e:
get_logger().error(f"Failed 'should_process_pr_logic': {e}")
return False
return True
return True
@router.post("/")