From 98a241e93893a685d596f46e26b2f1e9a7b924f7 Mon Sep 17 00:00:00 2001 From: Jochen Oberreiter Date: Fri, 16 Oct 2015 14:24:41 +0200 Subject: Fixing "has no attribute" error ``` Traceback (most recent call last): File "/usr/share/pyload/module/PluginThread.py", line 363, in run self.active.plugin.preprocessing(self) File "/usr/share/pyload/module/plugins/internal/Base.py", line 218, in preprocessing return self._process(*args, **kwargs) File "/usr/share/pyload/module/plugins/internal/Hoster.py", line 78, in _process self._setup() File "/usr/share/pyload/module/plugins/crypter/XFileSharingProFolder.py", line 41, in _setup account_name = self.classname if self.account.PLUGIN_DOMAIN is None else self.PLUGIN_NAME AttributeError: 'NoneType' object has no attribute 'PLUGIN_DOMAIN' ``` --- module/plugins/crypter/XFileSharingProFolder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/plugins/crypter/XFileSharingProFolder.py b/module/plugins/crypter/XFileSharingProFolder.py index 50b462e93..6790916b4 100644 --- a/module/plugins/crypter/XFileSharingProFolder.py +++ b/module/plugins/crypter/XFileSharingProFolder.py @@ -8,7 +8,7 @@ from module.plugins.internal.XFSCrypter import XFSCrypter, create_getInfo class XFileSharingProFolder(XFSCrypter): __name__ = "XFileSharingPro" __type__ = "crypter" - __version__ = "0.14" + __version__ = "0.15" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(?:\w+\.)*?(?P(?:[\d.]+|[\w\-^_]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/(?:user|folder)s?/\w+' @@ -38,7 +38,7 @@ class XFileSharingProFolder(XFSCrypter): def _setup(self): - account_name = self.classname if self.account.PLUGIN_DOMAIN is None else self.PLUGIN_NAME + account_name = self.classname if not self.account or self.account.PLUGIN_DOMAIN is None else self.PLUGIN_NAME self.chunk_limit = 1 self.multiDL = True -- cgit v1.2.3