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

Check that _misc_task is not None before trying to cancel it. #41

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

flyte
Copy link
Collaborator

@flyte flyte commented Feb 24, 2021

In #39 there's a second exception caused by self._mqtt_task being None when we try to cancel it. Since it's initialised as None, we shouldn't assume that it's not.

This is also something that would need to be fixed once type hints are added.

@frederikaalund
Copy link
Collaborator

Nice find. 👍 Another win for type hints. :)

@frederikaalund frederikaalund merged commit 3307297 into empicano:master Feb 24, 2021
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

Successfully merging this pull request may close these issues.

2 participants