Commit 659d9be5 by Matt Drayer

mattdrayer/WL-525: Handle for missing product attribute

parent 9fe2b27a
......@@ -17,7 +17,7 @@ def mode_for_seat(product):
mode = getattr(product.attr, 'certificate_type', getattr(product.attr, 'seat_type', None))
if not mode:
return 'audit'
if mode == 'professional' and not product.attr.id_verification_required:
if mode == 'professional' and not getattr(product.attr, 'id_verification_required', False):
return 'no-id-professional'
return mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment