diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 19:36:46 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 19:36:46 +0100 |
commit | 8f0303277fce7471539508f7a8fad033e5e87076 (patch) | |
tree | 8d464ad29d56226d6a3cd1d5ca0440c2115d07b2 /module/plugins/internal/SimpleCrypter.py | |
parent | [XFSPAccount] Improve VALID_UNTIL_PATTERN (diff) | |
download | pyload-8f0303277fce7471539508f7a8fad033e5e87076.tar.xz |
[SimpleHoster][SimpleCrypter] Clean error method
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index 61286449d..9e1b11f7b 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -7,7 +7,7 @@ from traceback import print_exc from module.network.RequestFactory import getURL from module.plugins.Crypter import Crypter from module.plugins.Plugin import Fail -from module.plugins.internal.SimpleHoster import replace_patterns, set_cookies +from module.plugins.internal.SimpleHoster import _error, replace_patterns, set_cookies from module.utils import fixup, html_unescape @@ -164,8 +164,5 @@ class SimpleCrypter(Crypter): self.package_links += self.getLinks() - #@TODO: remove in 0.4.10 def error(self, reason="", type="parse"): - if self.core.debug: - print_exc() - raise Fail("%s error%s | Plugin may be out of date" % (type.strip().capitalize(), ': ' + reason.strip() if reason else "")) + return _error(reason, type) |