diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 17:48:30 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 18:06:38 +0200 |
commit | 6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4 (patch) | |
tree | 24a8d6e3c2e62597b6cd3a75b77bf1a6470bd702 /pyload/plugin/Crypter.py | |
parent | Fix lib import (diff) | |
download | pyload-6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4.tar.xz |
[config] Use get method instead dict access
Diffstat (limited to 'pyload/plugin/Crypter.py')
-rw-r--r-- | pyload/plugin/Crypter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugin/Crypter.py b/pyload/plugin/Crypter.py index bfb558abd..3c1413f09 100644 --- a/pyload/plugin/Crypter.py +++ b/pyload/plugin/Crypter.py @@ -12,7 +12,7 @@ class Crypter(Plugin): __version = "0.05" __pattern = r'^unmatchable$' - __config = [("use_subfolder", "bool", "Save package to subfolder", True), #: Overrides core.config['general']['folder_per_package'] + __config = [("use_subfolder", "bool", "Save package to subfolder", True), #: Overrides core.config.get("general", "folder_per_package") ("subfolder_per_package", "bool", "Create a subfolder for each package", True)] __description = """Base decrypter plugin""" @@ -65,7 +65,7 @@ class Crypter(Plugin): package_password = self.pyfile.package().password package_queue = self.pyfile.package().queue - folder_per_package = self.core.config['general']['folder_per_package'] + folder_per_package = self.core.config.get("general", "folder_per_package") try: use_subfolder = self.getConfig('use_subfolder') except Exception: |