summaryrefslogtreecommitdiffstats
path: root/module
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
parent[ClickNLoad] Update (diff)
downloadpyload-6b7ef24ac13014c765139719d475995d51db69b3.tar.xz
fix 'exceptions.OSError' object has no attribute 'strip'
Diffstat (limited to 'module')
-rw-r--r--module/plugins/container/RSDF.py4
-rw-r--r--module/plugins/hoster/MegaCoNz.py4
-rw-r--r--module/plugins/internal/Container.py4
-rw-r--r--module/plugins/internal/Hoster.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/container/RSDF.py b/module/plugins/container/RSDF.py
index 942efe712..b26f8c916 100644
--- a/module/plugins/container/RSDF.py
+++ b/module/plugins/container/RSDF.py
@@ -14,7 +14,7 @@ from module.plugins.internal.misc import encode
class RSDF(Container):
__name__ = "RSDF"
__type__ = "container"
- __version__ = "0.34"
+ __version__ = "0.35"
__status__ = "testing"
__pattern__ = r'.+\.rsdf$'
@@ -46,7 +46,7 @@ class RSDF(Container):
data = rsdf.read()
except IOError, e:
- self.fail(e)
+ self.fail(e.message)
if re.search(r'<title>404 - Not Found</title>', data):
pyfile.setStatus("offline")
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
diff --git a/module/plugins/internal/Container.py b/module/plugins/internal/Container.py
index 717fe1a57..094bca3eb 100644
--- a/module/plugins/internal/Container.py
+++ b/module/plugins/internal/Container.py
@@ -13,7 +13,7 @@ from module.plugins.internal.misc import encode, exists
class Container(Crypter):
__name__ = "Container"
__type__ = "container"
- __version__ = "0.11"
+ __version__ = "0.12"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -69,7 +69,7 @@ class Container(Crypter):
f.write(encode(content))
except IOError, e:
- self.fail(e)
+ self.fail(e.message)
elif not exists(self.pyfile.url):
self.fail(_("File not found"))
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index bd8daded8..e50c1e744 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -34,7 +34,7 @@ if not hasattr(__builtin__.property, "setter"):
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.51"
+ __version__ = "0.52"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -291,7 +291,7 @@ class Hoster(Base):
os.makedirs(dl_dir)
except Exception, e:
- self.fail(e)
+ self.fail(e.message)
self.set_permissions(dl_dir)