summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegaCoNz.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-09 15:25:07 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-09 15:25:07 +0100
commit6b7ef24ac13014c765139719d475995d51db69b3 (patch)
tree36fd977e136c17aba5b87e23406725f997927fdd /module/plugins/hoster/MegaCoNz.py
parent[ClickNLoad] Update (diff)
downloadpyload-6b7ef24ac13014c765139719d475995d51db69b3.tar.xz
fix 'exceptions.OSError' object has no attribute 'strip'
Diffstat (limited to 'module/plugins/hoster/MegaCoNz.py')
-rw-r--r--module/plugins/hoster/MegaCoNz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py
index 12cbd2635..cbcb70394 100644
--- a/module/plugins/hoster/MegaCoNz.py
+++ b/module/plugins/hoster/MegaCoNz.py
@@ -46,7 +46,7 @@ from module.plugins.internal.misc import decode, encode, json
class MegaCoNz(Hoster):
__name__ = "MegaCoNz"
__type__ = "hoster"
- __version__ = "0.34"
+ __version__ = "0.35"
__status__ = "testing"
__pattern__ = r'(https?://(?:www\.)?mega(\.co)?\.nz/|mega:|chrome:.+?)#(?P<TYPE>N|)!(?P<ID>[\w^_]+)!(?P<KEY>[\w\-,]+)'
@@ -128,7 +128,7 @@ class MegaCoNz(Hoster):
df = open(file_decrypted, "wb")
except IOError, e:
- self.fail(e)
+ self.fail(e.message)
chunk_size = 2 ** 15 #: Buffer size, 32k
# file_mac = [0, 0, 0, 0] # calculate CBC-MAC for checksum