This commit is contained in:
Ramon Wenger 2022-09-08 12:29:41 +02:00
parent 269efed6ce
commit ae3dfdd17f
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class Coupon(relay.ClientIDMutation):
raise Exception('not_authenticated')
try:
# todo: differenciate between invalid_coupon and other errors like "delivery_address_not_set"
response = hep_client.redeem_coupon(coupon_code, hep_id, request=info.context)
except HepClientException:
raise Exception('unknown_error')