[metrics-bugs] #34208 [Metrics/Onionperf]: Onionperf errors when no subcommand is given (python3)
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed May 13 18:07:09 UTC 2020
#34208: Onionperf errors when no subcommand is given (python3)
-----------------------------------+--------------------------
Reporter: acute | Owner: metrics-team
Type: defect | Status: new
Priority: Very Low | Milestone:
Component: Metrics/Onionperf | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-----------------------------------+--------------------------
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.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34208>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the metrics-bugs
mailing list