1. Daniele Tricoli
  2. circuits

Commits

James Mills  committed 8707590

Fixed a bug with the Redirect event/error in circuits.web where it didn't handle unicode strings

  • Participants
  • Parent commits 866ff6d
  • Branches default

Comments (0)

Files changed (1)

File circuits/web/errors.py

View file
  • Ignore whitespace
 class Redirect(HTTPError):
 
     def __init__(self, request, response, urls, code=None):
-        if isinstance(urls, str):
+        if isinstance(urls, basestring):
             urls = [urls]
         
         abs_urls = []