Ignore:
Timestamp:
12/27/12 08:04:59 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The exception strings are converted from UTF-8 to unicode for proper logging (re #170)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r393 r401  
    512512                    flight.writeIntoFile(f)
    513513            except Exception, e:
    514                 print "Failed to save flight:", str(e)
     514                print "Failed to save flight:", util.utf2unicode(str(e))
    515515                dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow,
    516516                                           type = MESSAGETYPE_ERROR,
     
    555555                self._addFlight(bookedFlight)
    556556            except Exception, e:
    557                 print "Failed to load flight:", str(e)
     557                print "Failed to load flight:", util.utf2unicode(str(e))
    558558                dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow,
    559559                                           type = MESSAGETYPE_ERROR,
Note: See TracChangeset for help on using the changeset viewer.