Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O Onionperf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Network Health
  • Metrics
  • Onionperf
  • Issues
  • #34208

Closed
Open
Created May 13, 2020 by Ana Custura@acute🚀Maintainer

Onionperf errors when no subcommand is given (python3)

Not a major issue by any means, but OP errors when ran without any arguments. This seems to be a behaviour change from Python2 to Python3. The expected behaviour was previously to print help.

~/onionperf$ onionperf
Traceback (most recent call last):
  File "/usr/local/bin/onionperf", line 532, in <module>
    if __name__ == '__main__': sys.exit(main())
  File "/usr/local/bin/onionperf", line 351, in main
    args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'

I've attached a patch to get back that behaviour. See also https://bugs.python.org/issue16308.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking