Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected string or bytes-like object, got 'NoneType' #5

Open
mrsaffari opened this issue Sep 18, 2023 · 1 comment
Open

Comments

@mrsaffari
Copy link

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'

@dlQue
Copy link

dlQue commented Sep 22, 2023

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants