summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NoPremiumPl.py
diff options
context:
space:
mode:
authorGravatar synweap15 <shamdog+github@gmail.com> 2014-09-16 23:21:57 +0200
committerGravatar synweap15 <shamdog+github@gmail.com> 2014-09-16 23:21:57 +0200
commit542bb076b6a51c779f73249b02ffb5fae6950841 (patch)
tree63b3d928a5bd71d89129890c30410b4cdedee7a7 /module/plugins/hoster/NoPremiumPl.py
parentnewline fix (diff)
downloadpyload-542bb076b6a51c779f73249b02ffb5fae6950841.tar.xz
fix to work with python 2.5
Diffstat (limited to 'module/plugins/hoster/NoPremiumPl.py')
-rw-r--r--module/plugins/hoster/NoPremiumPl.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/NoPremiumPl.py b/module/plugins/hoster/NoPremiumPl.py
index f43292156..1bdd6eda0 100644
--- a/module/plugins/hoster/NoPremiumPl.py
+++ b/module/plugins/hoster/NoPremiumPl.py
@@ -63,14 +63,14 @@ class NoPremiumPl(SimpleHoster):
self.get_username_password()
try:
data = self.runFileQuery(pyfile.url, 'fileinfo')
- except Exception as e:
- self.logDebug(str(e))
+ except Exception:
+ self.logDebug("runFileQuery error")
self.tempOffline()
try:
parsed = loads(data)
- except Exception as e:
- self.logDebug(str(e))
+ except Exception:
+ self.logDebug("loads error")
self.tempOffline()
self.logDebug(parsed)
@@ -97,8 +97,8 @@ class NoPremiumPl(SimpleHoster):
try:
result_dl = self.runFileQuery(pyfile.url, 'filedownload')
- except Exception as e:
- self.logDebug(str(e))
+ except Exception:
+ self.logDebug("runFileQuery error #2")
self.tempOffline()
self.download(result_dl, disposition=True)