Cannot access bandwidth attribute on RouterV3StatusEntry
I was checking to see if I needed to do anythign to update depictor to work with Stem 1.4.0
I saw that .measured[0] went away, and seems to have been replaced by .bandwidth
[0] https://gitweb.torproject.org/depictor.git/tree/website.py#n551
But I get an error on some router, as shown below:
Traceback (most recent call last):
File "./write_website.py", line 159, in <module>
main()
File "./write_website.py", line 71, in main
w.write_website(os.path.join(os.path.dirname(__file__), 'out', 'consensus-health.html'), True)
File "/tor/depictor/website.py", line 36, in write_website
self._write_bandwidth_scanner_status()
File "/tor/depictor/website.py", line 553, in _write_bandwidth_scanner_status
if r.bandwidth >= 0L:
File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
parsing_function(self, self._entries)
File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
descriptor.unrecognized_bandwidth_entries.append(w_entry)
File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
parsing_function(self, self._entries)
File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
descriptor.unrecognized_bandwidth_entries.append(w_entry)
File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
parsing_function(self, self._entries)
File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
descriptor.unrecognized_bandwidth_entries.append(w_entry)
File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
parsing_function(self, self._entries)
File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
descriptor.unrecognized_bandwidth_entries.append(w_entry)
File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
parsing_function(self, self._entries)
File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
descriptor.unrecognized_bandwidth_entries.append(w_entry)
I added a print r.nickname right before that line, and it died on the relay 'DasielFR1' - but I don't see anything unique or unusual about that one...