Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S sbws
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Network Health
  • sbws
  • Issues
  • #30274

Closed
Open
Created Apr 23, 2019 by juga@jugaMaintainer

Do not scale relays' bandwidth when there is not descriptor

Sometimes sbws does not get the descriptor for a relay that is in the consensus. This might be due legacy/trac#29716 (moved). 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/sbws.py", line 75, in main
    exit(comm['f'](*comm['a'], **comm['kw']))
  File "/usr/lib/python3/dist-packages/sbws/core/generate.py", line 119, in main
    consensus_path=consensus_path)
  File "/usr/lib/python3/dist-packages/sbws/lib/v3bwfile.py", line 951, in from_results
    torflow_cap, round_digs)
  File "/usr/lib/python3/dist-packages/sbws/lib/v3bwfile.py", 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'
Assignee
Assign to
Time tracking