summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/XFileSharingProFolder.py
diff options
context:
space:
mode:
authorGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-10-16 14:24:41 +0200
committerGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-10-16 14:24:41 +0200
commit98a241e93893a685d596f46e26b2f1e9a7b924f7 (patch)
tree59ca021958cf3a46c3e63ae4be40f802ef5e31a6 /module/plugins/crypter/XFileSharingProFolder.py
parentMerge pull request #2023 from astranCZ/patch-2 (diff)
downloadpyload-98a241e93893a685d596f46e26b2f1e9a7b924f7.tar.xz
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' ```
Diffstat (limited to 'module/plugins/crypter/XFileSharingProFolder.py')
-rw-r--r--module/plugins/crypter/XFileSharingProFolder.py4
1 files 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<DOMAIN>(?:[\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