-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Traceback (most recent call last):
File "D:\sales\eml-extractor-main\eml_extractor.py", line 113, in
main()
File "D:\sales\eml-extractor-main\eml_extractor.py", line 108, in main
extract_attachments(file, destination=args.destination)
File "D:\sales\eml-extractor-main\eml_extractor.py", line 13, in extract_attachments
basepath = destination / sanitize_foldername(email_subject)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\sales\eml-extractor-main\eml_extractor.py", line 33, in sanitize_foldername
return re.sub(illegal_chars, '_', name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\re_init_.py", line 185, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'