diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-08-09 14:04:58 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-08-09 14:04:58 (GMT) |
commit | c6dd11f101d6220dd2baec5ca9e6deef729134e5 (patch) | |
tree | cae2527f01f063b84a638974d1a8f5fe23ce3f49 /service | |
parent | 1ad856097e9d24702d021540e72b2664b21db239 (diff) |
More pylint cleanups
Diffstat (limited to 'service')
-rw-r--r-- | service/bundleregistry.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/bundleregistry.py b/service/bundleregistry.py index e7c30a8..f40b6d6 100644 --- a/service/bundleregistry.py +++ b/service/bundleregistry.py @@ -53,7 +53,7 @@ class BundleRegistry(gobject.GObject): try: self._load_favorites() - except Exception, e: + except Exception: logging.error('Error while loading favorite_activities\n%s.' \ % traceback.format_exc()) @@ -105,7 +105,8 @@ class BundleRegistry(gobject.GObject): raise ValueError('Invalid format in %s.' % favorites_path) first_value = favorite_bundles.values()[0] - if first_value is not None and not isinstance(first_value, dict): + if first_value is not None and \ + not isinstance(first_value, dict): raise ValueError('Invalid format in %s.' % favorites_path) self._last_defaults_mtime = float(favorites_data['defaults-mtime']) |