summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 39da1ee7b..f5f30fc52 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -309,16 +309,16 @@ class ExtractArchive(Hook):
def reloadPasswords(self):
passwordfile = self.getConfig("passwordfile")
-
+
try:
passwords = []
with open(passwordfile, "a+") as f:
for pw in f.read().splitlines():
passwords.append(pw)
-
+
except IOError, e:
self.logError(str(e))
-
+
else:
self.passwords = passwords
@@ -330,7 +330,7 @@ class ExtractArchive(Hook):
if pw in self.passwords:
self.passwords.remove(pw)
-
+
self.passwords.insert(0, pw)
try: