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

Commit

Permalink
Avoid KeyError for is_simulation (bug 900152)
Browse files Browse the repository at this point in the history
This was triggered by auth/views.py:verify()
  • Loading branch information
kumar303 committed Jul 31, 2013
1 parent 493f28b commit 204a7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpay/pay/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def configure_transaction(request):
if settings.FAKE_PAYMENTS:
log.info('FAKE_PAYMENTS: skipping configure payments step')
return
if request.session['is_simulation']:
if request.session.get('is_simulation', False):
log.info('is_simulation: skipping configure payments step')
return

Expand Down

0 comments on commit 204a7cb

Please sign in to comment.