Commits

Steffen  committed bbfd0ca

Prevent that the variable ordershippable could be referenced before assignment in case of an exception.

  • Participants
  • Parent commits 76b7dcc

Comments (0)

Files changed (1)

File satchmo/apps/payment/views/payship.py

                 order_data['shipping'] = order.shipping_model
             ordershippable = order.is_shippable
         except Order.DoesNotExist:
-            pass
+            ordershippable = False
 
         form = SimplePayShipForm(request, payment_module, order_data)
         if allow_skip: