При выполнении данной части кода возникает ошибка, не понимаю в чём проблема.
export_folder_path = 'D://export//'
repricient = 'local.xlsx'
filename = os.path.basename(export_folder_path + recipient)
ftype, encoding = mimetypes.guess_type(export_folder_path + recipient)
file_type, subtype = ftype.split("/")
Ошибка:
Traceback (most recent call last):
File "D:\src\main.py", line 14, in <module>
post_mail(database.keys())
File "D:\src\send_files.py", line 24, in post_mail
file_type, subtype = ftype.split("/")
AttributeError: 'NoneType' object has no attribute 'split'