Commits

Grigoriy Petukhov  committed 1bdf264

fix two bugs

  • Participants
  • Parent commits 8aeea9e

Comments (0)

Files changed (2)

File sape/templatetags/sape_extras.py

             try:
                 context[CLIENT_KEY] = build_sape_client(request)
             except SapeException, ex:
-                return verbose and unicode(ex) or ''
+                return SAPE_VERBOSE and unicode(ex) or ''
         client = context[CLIENT_KEY]
 
         if not self.join:

File sape/util.py

                 # of this library will pass cookies dict to SapeClient
                 # constructor (cookies required for detecting sape bot)
                 if self.is_our_bot or self.force_show_code:
-                    self.links_page = new_url
+                    self.links_page = [new_url]
 
 
     def decode(self, data):