Skip to content

Commit

Permalink
Fixed UnboundLocalError if create_receipt fails
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Dec 18, 2012
1 parent e68294e commit 0727fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mkt/receipts/views.py
Expand Up @@ -185,6 +185,7 @@ def issue(request, addon):

error = ''
receipt_cef.log(request, addon, 'sign', 'Receipt signing for %s' % flavour)
receipt = None
try:
receipt = create_receipt(installed.pk, flavour=flavour)
except SigningError:
Expand Down

0 comments on commit 0727fbf

Please sign in to comment.