@ -116,8 +116,12 @@ def pdf_unlock(pdf_file, overwrite=False):
return
# Skip file if it is not encrypted
try:
if not isencrypted(pdf_file):
# SKip file if pdf info cannot be read
except AttributeError:
# Get name of Ghostscript executable
if os.sys.platform == 'win32':