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

worker: use get_attr and prevent TypeError #57

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Conversation

moepman
Copy link
Contributor

@moepman moepman commented Sep 7, 2021

The WG<XXX> attributes are no longer present after
svinota/pyroute2@3e48554
so .get_attr has to beed used in order to remain compatible with
pyroute2 >= 0.5.15.

Calling extend on a list with None as argument waill raise a TypeError.
This happens when no peers are added yet (e.g. after a fresh boot)

The `WG<XXX>` attributes are no longer present after
svinota/pyroute2@3e48554
so .get_attr has to beed used in order to remain compatible with
pyroute2 >= 0.5.15.

Calling extend on a list with None as argument waill raise a TypeError.
This happens when no peers are added yet (e.g. after a fresh boot)
Copy link
Member

@awlx awlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🥳

@awlx awlx merged commit 769051c into freifunkMUC:main Sep 7, 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