logging.debug('Read these passwords from file: %s',pws)
passwords.extend(pws)
pwf.close()
logging.info('Read %s passwords from file %s',len(pws),pw_file)
exceptIOError:
logging.info('Failed to read the passwords file %s',pw_file)
except:
logging.warning('Failed to read the passwords file %s',pw_file)
# Check size
iflen(passwords)>30:
logging.warning(T('Your password file contains more than 30 passwords, testing all these passwords takes a lot of time. Try to only list useful passwords.'))
ifnzo.password:
# If an explicit password was set, add a retry without password, just in case.