Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. diff --git a/modules/default/handlers/receipt/receipt_handler.py b/modules/default/handlers/receipt/receipt_handler.py
  2. index 6dd282f..da471b6 100644
  3. --- a/modules/default/handlers/receipt/receipt_handler.py
  4. +++ b/modules/default/handlers/receipt/receipt_handler.py
  5. @@ -9,6 +9,7 @@ from config.hib import (
  6. from libraries import pubnub
  7. from libraries.money import moneyfmt, CurrencyConstants
  8. from libraries.system import PRODUCTION
  9. +from libraries.utils.strings import convert_basestring_to_string
  10. from models.Product import Product
  11. from models.Tab import Tab
  12. from modules.default.handlers.base import BaseHandler
  13. @@ -40,7 +41,8 @@ class ReceiptPageHandler(BaseHandler):
  14. @ssl_required
  15. def get(self):
  16. template_vars = self._set_template_vars() or {} # Default to an empty dict, so users won't see a blank page when there are no template_vars
  17. - self._render(template_vars)
  18. + if template_vars:
  19. + self._render(template_vars)
  20.  
  21. def _set_template_vars(self):
  22. template_vars = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement