Opened 18 months ago

Last modified 17 months ago

#30274 new defect

Do not scale relays' bandwidth when there is not descriptor

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: 1.1.x-final
Component: Core Tor/sbws Version: sbws: 1.1.0
Severity: Normal Keywords: generate
Cc: juga Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:


Sometimes sbws does not get the descriptor for a relay that is in the consensus.
This might be due #29716.
I was hoping to make a refactor before changing this, but since refactoring would take longer, this should be fixed first.

Traceback (most recent call last):
  File "/usr/bin/sbws", line 11, in <module>
    load_entry_point('sbws==1.1.0.dev0', 'console_scripts', 'sbws')()
  File "/usr/lib/python3/dist-packages/sbws/", line 75, in main
    exit(comm['f'](*comm['a'], **comm['kw']))
  File "/usr/lib/python3/dist-packages/sbws/core/", line 119, in main
  File "/usr/lib/python3/dist-packages/sbws/lib/", line 951, in from_results
    torflow_cap, round_digs)
  File "/usr/lib/python3/dist-packages/sbws/lib/", line 1248, in bw_torflow_scale
    desc_bw = min(desc_bw_obs, l.desc_bw_avg)
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'

Child Tickets

Change History (1)

comment:1 Changed 17 months ago by teor

What does torflow do when this happens?

Note: See TracTickets for help on using tickets.