cc-4105: added locale configuration attempt to beginning of mm2
This commit is contained in:
parent
c5bc6a85d2
commit
6fd1dff60a
4 changed files with 39 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue