Success referenced before assignment error on checkout

Issue #730 resolved
Jason Christa
created an issue

After clicking purchase items I get this error:

Success should either always be assigned or an exception should be thrown when it is not that is more descriptive of the underlying problem.

''Environment:

Request Method: POST Request URL: http://www.nextnewsstand.com/checkout/credit/confirm/ Django Version: 1.1 pre-alpha Python Version: 2.4.3 Installed Applications: ['satchmo_store.shop', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.comments', 'django.contrib.sessions', 'django.contrib.sitemaps', 'django.contrib.sites', 'registration', 'sorl.thumbnail', 'satchmo', 'keyedcache', 'livesettings', 'satchmo_store.contact', 'product', 'shipping', 'payment', 'satchmo_utils', 'satchmo_utils.thumbnail', 'l10n', 'tax', 'tax.modules.no', 'tax.modules.area', 'tax.modules.percent', 'satchmo_ext.recentlist', 'app_plugins'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'threaded_multihost.middleware.ThreadLocalMiddleware', 'satchmo_store.shop.SSLMiddleware.SSLRedirect', 'satchmo_ext.recentlist.middleware.RecentProductMiddleware')

Traceback: File "/var/www/next_django/apps/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, callback_kwargs) File "/var/www/next_django/apps/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, kwargs) File "/var/www/next_django/apps/satchmo/apps/payment/modules/authorizenet/views.py" in confirm_info 10. return confirm.credit_confirm_info(request, config_get_group('PAYMENT_AUTHORIZENET')) File "/var/www/next_django/apps/satchmo/apps/payment/views/confirm.py" in credit_confirm_info 201. controller.confirm() File "/var/www/next_django/apps/satchmo/apps/payment/views/confirm.py" in confirm 83. if self.process(): File "/var/www/next_django/apps/satchmo/apps/payment/views/confirm.py" in process 152. self.processorResults, self.processorReasonCode, self.processorMessage = self.processor.process() File "/var/www/next_django/apps/satchmo/apps/payment/modules/authorizenet/processor.py" in process 223. return success, reason, response

Exception Type: UnboundLocalError at /checkout/credit/confirm/ Exception Value: local variable 'success' referenced before assignment''

Comments (3)

  1. Log in to comment