Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3547 from gratipay/fix-receipt-page
Browse files Browse the repository at this point in the history
Check for null billing_address in billing/instruments.py
  • Loading branch information
chadwhitacre committed Jun 11, 2015
2 parents 0d2997b + 645d8a5 commit 34b987e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gratipay/billing/instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def from_route(cls, route):
expiration_month=card.expiration_month,
expiration_year=card.expiration_year,
cardholder_name=card.cardholder_name,
address_postal_code=card.billing_address.postal_code
address_postal_code=getattr(card.billing_address, 'postal_code', '')
)
else:
assert route.network == 'balanced-cc'
Expand Down

0 comments on commit 34b987e

Please sign in to comment.