Commit 7635d6a7 authored by Daniel Stan's avatar Daniel Stan

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)
try:
return unicode(data)
except:
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