cc-4105: added locale configuration attempt to beginning of mm2

This commit is contained in:
Rudi Grinberg 2012-07-23 11:02:11 -04:00
parent c5bc6a85d2
commit 6fd1dff60a
4 changed files with 39 additions and 13 deletions

View file

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
class BadSongFile(Exception):
def __init__(self, path): self.path = path
def __str__(self): return "Can't read %s" % self.path
@ -15,3 +14,9 @@ class ConfigAccessViolation(Exception):
class FailedToSetLocale(Exception):
def __str__(self): return "Failed to set locale"
class FailedToObtainLocale(Exception):
def __init__(self, path, cause):
self.path = path
self.cause = cause
def __str__(self): return "Failed to obtain locale from '%s'" % self.path