diff options
Diffstat (limited to 'cherrypy/lib/encoding.py')
-rw-r--r-- | cherrypy/lib/encoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/encoding.py b/cherrypy/lib/encoding.py index f567bc04..d1d66a45 100644 --- a/cherrypy/lib/encoding.py +++ b/cherrypy/lib/encoding.py @@ -78,7 +78,7 @@ def encode_string(encoding, errors='strict'): for chunk in cherrypy.response.body: body.append(chunk.encode(encoding, errors)) cherrypy.response.body = body - except UnicodeError: + except (LookupError, UnicodeError): return False else: return True |