From 3c4ac98bafc44a3fe0081e5be7f38195865763f6 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 5 Dec 2014 13:06:27 -0300 Subject: [PATCH] Fix import of exception from ConfigParser In the commit f0927c364cedb077420a26a7d4628a5ddffbaa5a the ParsingError is not properly imported. --- src/sugar3/bundle/activitybundle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sugar3/bundle/activitybundle.py b/src/sugar3/bundle/activitybundle.py index f9a700a5..2e7f725a 100644 --- a/src/sugar3/bundle/activitybundle.py +++ b/src/sugar3/bundle/activitybundle.py @@ -20,7 +20,7 @@ UNSTABLE. """ -from ConfigParser import ConfigParser +from ConfigParser import ConfigParser, ParsingError from locale import normalize import os import shutil @@ -243,7 +243,7 @@ class ActivityBundle(Bundle): if cp.has_option(section, 'tags'): tag_list = cp.get(section, 'tags').strip(';') 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) def get_locale_path(self):