affich_tools: ça ne peut que moins planter ainsi
This commit is contained in:
parent
51aec2dd3d
commit
7635d6a7f6
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue