From 752c9297529a6eca2df50b5a5ef4011388d849dd Mon Sep 17 00:00:00 2001 From: Nils Hesse Date: Wed, 13 Feb 2013 23:09:24 +0100 Subject: Change exception handling to Python 2.5 compatible syntax. Increase version numbers of the plugins. --- module/plugins/accounts/ReloadCc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts') 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: -- cgit v1.2.3