Commits

James Mills committed 8707590

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

Comments (0)

Files changed (1)

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 = []