mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix server error when displaying a tool dependency installation status when the tool dependency contains certain unicode characters in the displayed error message.
This commit is contained in:
@@ -1214,7 +1214,7 @@ def to_safe_string( text, to_html=True ):
|
||||
if text:
|
||||
if to_html:
|
||||
try:
|
||||
escaped_text = text.decode( 'utf-8' )
|
||||
escaped_text = unicodify( text )
|
||||
escaped_text = escaped_text.encode( 'ascii', 'ignore' )
|
||||
escaped_text = str( markupsafe.escape( escaped_text ) )
|
||||
except UnicodeDecodeError, e:
|
||||
|
||||
Reference in New Issue
Block a user