diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-05 23:08:44 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-05 23:08:44 +0100 |
commit | 5a23de6f32dc99960cccd634d2fd2cc47c34be2a (patch) | |
tree | 0e2f303aa2d2309dd19586ee9badc9b857941668 /module/plugins/hoster/FastshareCz.py | |
parent | [DodanePl] Typo fixup (diff) | |
download | pyload-5a23de6f32dc99960cccd634d2fd2cc47c34be2a.tar.xz |
Code cosmetics about checkErrors
Diffstat (limited to 'module/plugins/hoster/FastshareCz.py')
-rw-r--r-- | module/plugins/hoster/FastshareCz.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py index 8b01b5edd..1f1e9e6ee 100644 --- a/module/plugins/hoster/FastshareCz.py +++ b/module/plugins/hoster/FastshareCz.py @@ -35,14 +35,16 @@ class FastshareCz(SimpleHoster): def checkErrors(self): if self.SLOT_ERROR in self.html: - e = self.info['error'] = _("No free slots") - self.retry(12, 60, e) + errmsg = self.info['error'] = _("No free slots") + self.retry(12, 60, errmsg) if self.CREDIT_ERROR in self.html: - e = self.info['error'] = _("Not enough traffic left") - self.logWarning(e) + errmsg = self.info['error'] = _("Not enough traffic left") + self.logWarning(errmsg) self.resetAccount() + self.info.pop('error', None) + def handleFree(self): m = re.search(self.FREE_URL_PATTERN, self.html) |