Nov-23-2019, 09:23 AM
use:
You can capture that one as well if so desired.
try: PdfTitle = pdftitle.run(FilePath) except KeyError: print(f"Key error encountered: {FilePath}") raiseThe raise will allow exceptions other that KeyError to cause error, so PDFUnicodeNotDefined will still raise exception.
You can capture that one as well if so desired.