diff --git a/g2p_entitlement_voucher/views/entitlement_view.xml b/g2p_entitlement_voucher/views/entitlement_view.xml
index 36c3c5dd..06ad7c2f 100644
--- a/g2p_entitlement_voucher/views/entitlement_view.xml
+++ b/g2p_entitlement_voucher/views/entitlement_view.xml
@@ -42,7 +42,10 @@
code
if records:
- action = records.generate_vouchers_action()
+ try:
+ action = records.generate_vouchers_action()
+ except Exception as err:
+ raise UserError(err)