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

Outlook-exchange/1.0.0 add_category bug #368

Open
gh0o5t opened this issue Jan 18, 2024 · 0 comments
Open

Outlook-exchange/1.0.0 add_category bug #368

gh0o5t opened this issue Jan 18, 2024 · 0 comments
Labels

Comments

@gh0o5t
Copy link

gh0o5t commented Jan 18, 2024

The add_category function of the application can add category to an email which already has a category, but can't add category to an email which does not have a category.

The issue is probably caused by this part of the function:

try:
  email = folder.get(message_id=email_id)
  email.categories.extend(category)
  email.save()

The function tries to extend the categories list, however if there is no category on the email this is a NoneType object.

Exchange version: 15.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants