CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder

-syntax errors
This commit is contained in:
Martin Konecny 2012-05-14 19:31:50 -04:00
parent b79f02ab88
commit c1d33e9f72
2 changed files with 2 additions and 2 deletions
python_apps

View File

@ -49,7 +49,7 @@ def configure_locale():
new_locale = default_locale
test = re.compile(r"UTF-?8", re.IGNORECASE)
if re.findall(new_locale):
if test.findall(new_locale):
logger.info("New locale set to: %s", locale.setlocale(locale.LC_ALL, new_locale))
else:
logger.info("Invalid locale %s", new_locale)

View File

@ -72,7 +72,7 @@ def configure_locale():
new_locale = default_locale
test = re.compile(r"UTF-?8", re.IGNORECASE)
if re.findall(new_locale):
if test.findall(new_locale):
logger.info("New locale set to: %s", locale.setlocale(locale.LC_ALL, new_locale))
else:
logger.info("Invalid locale %s", new_locale)