summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:35:53 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:35:53 +0200
commitbb1f6b3cbfc34914a1a336f8f5a2e15b57e2b5f5 (patch)
tree418ca12dba84c99cbaabd413c73fd547c6781450 /module/plugins/internal/SimpleCrypter.py
parentFix XDCCRequest _keepAlive (diff)
downloadpyload-bb1f6b3cbfc34914a1a336f8f5a2e15b57e2b5f5.tar.xz
parseError -> error now calls Fail instead Exception
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 3c1dc3244..b45e503d5 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -3,14 +3,15 @@
import re
from module.plugins.Crypter import Crypter
-from module.plugins.internal.SimpleHoster import PluginParseError, replace_patterns, set_cookies
+from module.plugins.Plugin import Fail
+from module.plugins.internal.SimpleHoster import replace_patterns, set_cookies
from module.utils import fixup, html_unescape
class SimpleCrypter(Crypter):
__name__ = "SimpleCrypter"
__type__ = "crypter"
- __version__ = "0.15"
+ __version__ = "0.16"
__pattern__ = None
@@ -156,5 +157,5 @@ class SimpleCrypter(Crypter):
self.package_links += self.getLinks()
- def parseError(self, msg):
- raise PluginParseError(msg)
+ def error(self, reason):
+ raise Fail("Parse error (%s) - crypter plugin may be out of date" % reason)