From 2684d40728a87b42b76f997a19a810656544a5b9 Mon Sep 17 00:00:00 2001 From: OpenClaw Date: Mon, 25 May 2026 11:15:50 +0530 Subject: [PATCH] fix: make after_migrate hooks non-fatal --- aws_integration/s3/setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aws_integration/s3/setup.py b/aws_integration/s3/setup.py index 1774e9b..c08a0f2 100644 --- a/aws_integration/s3/setup.py +++ b/aws_integration/s3/setup.py @@ -4,6 +4,17 @@ def after_migrate(): """Create custom fields on File DocType for S3 integration.""" + try: + _create_s3_custom_fields() + except Exception: + frappe.log_error( + title="aws_integration after_migrate failed", + message=frappe.get_traceback(), + ) + frappe.logger("aws_integration").exception("after_migrate failed") + + +def _create_s3_custom_fields(): custom_fields = { "File": [ {