Fix import of exception from ConfigParser
In the commit f0927c364c
the ParsingError is not properly imported.
This commit is contained in:
parent
95a0c3f5f1
commit
3c4ac98baf
@ -20,7 +20,7 @@
|
|||||||
UNSTABLE.
|
UNSTABLE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ConfigParser import ConfigParser
|
from ConfigParser import ConfigParser, ParsingError
|
||||||
from locale import normalize
|
from locale import normalize
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
@ -243,7 +243,7 @@ class ActivityBundle(Bundle):
|
|||||||
if cp.has_option(section, 'tags'):
|
if cp.has_option(section, 'tags'):
|
||||||
tag_list = cp.get(section, 'tags').strip(';')
|
tag_list = cp.get(section, 'tags').strip(';')
|
||||||
self._tags = [tag.strip() for tag in tag_list.split(';')]
|
self._tags = [tag.strip() for tag in tag_list.split(';')]
|
||||||
except ConfigParser.ParsingError as e:
|
except ParsingError as e:
|
||||||
logging.exception('Exception reading linfo file: %s', e)
|
logging.exception('Exception reading linfo file: %s', e)
|
||||||
|
|
||||||
def get_locale_path(self):
|
def get_locale_path(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user