From 22e354af9c90ac54632a5ca145aab60b5f671d4f Mon Sep 17 00:00:00 2001 From: Vibol Teav Date: Fri, 25 Aug 2023 16:11:56 +0700 Subject: [PATCH] fix syntax --- app/workers/organization_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/organization_worker.rb b/app/workers/organization_worker.rb index 2596178d3b..ff67293f21 100644 --- a/app/workers/organization_worker.rb +++ b/app/workers/organization_worker.rb @@ -7,7 +7,7 @@ def perform(org_id) begin Apartment::Tenant.create(organization.short_name) - else Apartment::TenantExists => e + rescue Apartment::TenantExists => e Rails.logger.info "Tenant #{organization.short_name} already exists" # Continue end