Ignore:
Timestamp:
12/27/12 08:04:59 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, '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/sound.py

    r299 r401  
     1
     2from util import utf2unicode
    13
    24import os
     
    115117                        print "Closed", alias
    116118                    except Exception, e:
    117                         print "Failed closing " + alias + ":", str(e)
     119                        print "Failed closing " + alias + ":",
     120                        print utf2unicode(str(e))
    118121                        success = False
    119122
     
    143146                        print "Started to play", path
    144147                    except Exception, e:
    145                         print "Failed to start playing " + path + ":", str(e)                       
     148                        print "Failed to start playing " + path + ":",
     149                        print utf2unicode(str(e))
    146150                        (finishCallback, extra) = finishData
    147151                        if finishCallback is not None:
Note: See TracChangeset for help on using the changeset viewer.