Commit 7635d6a7 authored by Daniel STAN's avatar Daniel STAN
Browse files

affich_tools: ça ne peut que moins planter ainsi

parent 51aec2dd
......@@ -187,7 +187,11 @@ def tableau(data, titre=None, largeur=None, alignement=None, format=None, dialog
def reformate(data, format):
if format == 's':
return unicode(data)
sys.stderr.write("Cannot cast to unicode %r\n" % data)
return unicode(data, errors='ignore')
elif format == 'o' :
data = float(data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment