summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/PremiumTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
commit004a80bfaad38f9400e8aebcb8f980353a232295 (patch)
tree1e786d2d14a3040767aac237982544b74a9567cb /pyload/plugins/hoster/PremiumTo.py
parentFix previous merge (diff)
downloadpyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/plugins/hoster/PremiumTo.py')
-rw-r--r--pyload/plugins/hoster/PremiumTo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/plugins/hoster/PremiumTo.py b/pyload/plugins/hoster/PremiumTo.py
index 305b6d1d1..03ac37599 100644
--- a/pyload/plugins/hoster/PremiumTo.py
+++ b/pyload/plugins/hoster/PremiumTo.py
@@ -72,6 +72,6 @@ class PremiumTo(Hoster):
api_r = self.load("http://premium.to/api/straffic.php",
get={'username': self.account.username, 'password': self.account.password})
traffic = sum(map(int, api_r.split(';')))
- except:
+ except Exception:
traffic = 0
return traffic