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/pirep.py

    r393 r401  
     1
     2from util import utf2unicode
    13
    24import const
     
    5254                return pirep
    5355        except Exception, e:
    54             print "Failed loading PIREP from %s: %s" % (path, str(e))
     56            print "Failed loading PIREP from %s: %s" % (path,
     57                                                        utf2unicode(str(e)))
    5558            return None
    5659
     
    157160            return None
    158161        except Exception, e:
    159             error = str(e)
    160             #print u"Failed saving PIREP to %s: %s" % (path, error)
     162            error = utf2unicode(str(e))
     163            print u"Failed saving PIREP to %s: %s" % (path, error)
    161164            return error
Note: See TracChangeset for help on using the changeset viewer.