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

Comments (0)

Files changed (1)

File circuits/web/errors.py

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