Skip to content

Commit dadb003

Browse files
committed
Fix typo.
1 parent 8033158 commit dadb003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localstripe/resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,8 +3310,8 @@ def _update(self, metadata=None, items=None, trial_end=None,
33103310
proration=True,
33113311
description='Unused time',
33123312
subscription=self.id,
3313-
plan=old_plan.id,
3314-
price=old_price.id
3313+
plan=old_plan.id if old_plan else None,
3314+
price=old_price.id if old_price else None,
33153315
tax_rates=previous_tax_rates,
33163316
customer=self.customer)
33173317

0 commit comments

Comments
 (0)