diff options
author | Nils Hesse <nphesse@gmail.com> | 2013-02-13 23:09:24 +0100 |
---|---|---|
committer | Nils Hesse <nphesse@gmail.com> | 2013-02-13 23:09:24 +0100 |
commit | 752c9297529a6eca2df50b5a5ef4011388d849dd (patch) | |
tree | c1d7d555069363aeb6d06064bbb21f098527fc74 /module/plugins/accounts | |
parent | Add support for limited connections to the Reload.cc plugin (diff) | |
download | pyload-752c9297529a6eca2df50b5a5ef4011388d849dd.tar.xz |
Change exception handling to Python 2.5 compatible syntax. Increase version numbers of the plugins.
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/ReloadCc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/ReloadCc.py b/module/plugins/accounts/ReloadCc.py index 0916499e8..e4cb32c42 100644 --- a/module/plugins/accounts/ReloadCc.py +++ b/module/plugins/accounts/ReloadCc.py @@ -6,7 +6,7 @@ from module.network.HTTPRequest import BadHeader class ReloadCc(Account): __name__ = "ReloadCc" - __version__ = "0.2" + __version__ = "0.3" __type__ = "account" __description__ = """Reload.Cc account plugin""" @@ -54,7 +54,7 @@ class ReloadCc(Account): try: answer = req.load("http://api.reload.cc/login", get=query_params) - except BadHeader as e: + except BadHeader, e: if e.code == 400: raise Exception("There was an unknown error within the Reload.cc plugin.") elif e.code == 401: |