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

fix iterator error when discovering slow networks #295

Merged

Conversation

gnmerritt
Copy link
Contributor

This fixes the following crash for me, seemingly happens when dealing with particularly slow devices

Traceback (most recent call last):
  File "scrape-debugger.py", line 8, in <module>
    devices = bacnet.discover()
  File "/usr/local/lib/python3.8/dist-packages/BAC0/scripts/Lite.py", line 242, in discover
    for network in _networks:
RuntimeError: Set changed size during iteration

@ChristianTremblay
Copy link
Owner

Interesting catch. Thanks.

@ChristianTremblay ChristianTremblay merged commit cf09565 into ChristianTremblay:develop Sep 9, 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