[tor-bugs] #28494 [Core Tor/Stem]: Please provide an equivalent for UnparseableDescriptor from metrics-lib
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Nov 17 21:27:31 UTC 2018
#28494: Please provide an equivalent for UnparseableDescriptor from metrics-lib
-------------------------------+--------------------
Reporter: irl | Owner: atagar
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-------------------------------+--------------------
When something wasn't able to be parsed, we'd still like to be able to
save the bytes to be able to analyse it later. Instead of throwing a
TypeError, please allow for an UnparseableDescriptor to be returned
instead. This could be behaviour that is switched by a keyword argument on
parse_file (and parse_bytes once implemented) or it could just be the
default to try it hardest to return something instead of throwing the
error.
https://metrics.torproject.org/metrics-
lib/org/torproject/descriptor/UnparseableDescriptor.html
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28494>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list