summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Nils Hesse <nphesse@gmail.com> 2013-02-13 23:09:24 +0100
committerGravatar Nils Hesse <nphesse@gmail.com> 2013-02-13 23:09:24 +0100
commit752c9297529a6eca2df50b5a5ef4011388d849dd (patch)
treec1d7d555069363aeb6d06064bbb21f098527fc74 /module/plugins/hoster
parentAdd support for limited connections to the Reload.cc plugin (diff)
downloadpyload-752c9297529a6eca2df50b5a5ef4011388d849dd.tar.xz
Change exception handling to Python 2.5 compatible syntax. Increase version numbers of the plugins.
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ReloadCc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/ReloadCc.py b/module/plugins/hoster/ReloadCc.py
index d56247868..6edce3b14 100644
--- a/module/plugins/hoster/ReloadCc.py
+++ b/module/plugins/hoster/ReloadCc.py
@@ -6,7 +6,7 @@ from module.network.HTTPRequest import BadHeader
class ReloadCc(Hoster):
__name__ = "ReloadCc"
- __version__ = "0.2"
+ __version__ = "0.3"
__type__ = "hoster"
__description__ = """Reload.Cc hoster plugin"""
@@ -48,7 +48,7 @@ class ReloadCc(Hoster):
try:
answer = self.load("https://api.reload.cc/dl", get=query_params)
- except BadHeader as e:
+ except BadHeader, e:
if e.code == 400:
self.fail("The URI is not supported by Reload.cc.")
elif e.code == 401:
@@ -87,7 +87,7 @@ class ReloadCc(Hoster):
try:
self.download(data['link'], disposition=True)
- except BadHeader as e:
+ except BadHeader, e:
if e.code == 404:
self.fail("File Not Found")
elif e.code == 412: