Skip to content

Commit

Permalink
Merge pull request #87 from priyankarani/fix
Browse files Browse the repository at this point in the history
Handle case when country does not exist for order
  • Loading branch information
tarunbhardwaj committed Apr 7, 2015
2 parents 0c2fdbe + 3e38d91 commit 65813aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion party.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def create_for_party_using_magento_data(cls, party, address_data):
'street': address_data['street'],
'zip': address_data['postcode'],
'city': address_data['city'],
'country': country.id,
'country': country and country.id or None,
'subdivision': subdivision and subdivision.id or None,
}])

Expand Down

0 comments on commit 65813aa

Please sign in to comment.