Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put if logic to check if twelve_month_price is 0 to stop error of amo…
…unt / twelve_month_price I set value but set it to 0 if it doesnt find a value: twelve_month_price = pricing_section.get('12Month', 0) The error occured when this line ran when twelve_month_price could not find a value and set 0 to value instead if amount > twelve_month_price: I added a if statement to skip this section as if the twelve_month_price isnt set then likely longer subscriptions are not allowed. if twelve_month_price != 0:
- Loading branch information