Commit 369cc460 authored by Romain Bignon's avatar Romain Bignon

pyflake and python3 fixes

parent 6ae306ec
Pipeline #1866 failed with stages
in 3 minutes and 48 seconds
......@@ -29,6 +29,7 @@ from weboob.browser.elements import DictElement, ItemElement, ListElement, metho
from weboob.browser.filters.standard import Date, Env, CleanText, Field, ItemNotFound, BrowserURL
from weboob.browser.filters.json import Dict
from import parse_french_date
from import basestring
class ArteItemElement(ItemElement):
......@@ -173,7 +173,7 @@ class Repository(object):
filename = os.path.join(self.localurl2path(), self.INDEX)
fp = open(filename, 'r')
except IOError as e:
except IOError:
# This local repository doesn't contain a built modules.list index. = Repositories.url2filename(self.url)
self.build_index(self.localurl2path(), filename)
......@@ -263,7 +263,7 @@ class ConsoleApplication(Application):
def register_backend(self, name, ask_add=True):
backend = self.weboob.modules_loader.get_or_load_module(name)
except ModuleLoadError as e:
except ModuleLoadError:
backend = None
if not backend:
......@@ -163,6 +163,7 @@ class QtApplication(QApplication, Application):
return Application.load_backends(self, *args, **kwargs)
except VersionsMismatchError as e:
msg = 'Versions of modules mismatch with version of weboob.'
last_exc = e
except ConfigError as e:
msg = unicode(e)
last_exc = e
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment