GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 2969e2c1 authored by juga  's avatar juga 💬

chg: resultdump: Add missing attrs to errors

parent b1c0f0d0
......@@ -584,7 +584,14 @@ class ResultErrorSecondRelay(ResultError):
return ResultErrorSecondRelay(
Result.Relay(
d['fingerprint'], d['nickname'], d['address'],
d['master_key_ed25519']),
d['master_key_ed25519'],
relay_in_recent_consensus= # noqa
d.get('relay_in_recent_consensus', None), # noqa
relay_recent_measurement_attempt= # noqa
d.get('relay_recent_measurement_attempt', None), # noqa
relay_recent_priority_list= # noqa
d.get('relay_recent_priority_list', None), # noqa
),
d['circ'], d['dest_url'], d['scanner'],
msg=d['msg'], t=d['time'])
......@@ -619,8 +626,15 @@ class ResultErrorDestination(ResultError):
return ResultErrorSecondRelay(
Result.Relay(
d['fingerprint'], d['nickname'], d['address'],
d['master_key_ed25519']),
d['circ'], d['dest_url'], d['scanner'],
d['master_key_ed25519'],
d['circ'], d['dest_url'], d['scanner'],
relay_in_recent_consensus= # noqa
d.get('relay_in_recent_consensus', None), # noqa
relay_recent_measurement_attempt= # noqa
d.get('relay_recent_measurement_attempt', None), # noqa
relay_recent_priority_list= # noqa
d.get('relay_recent_priority_list', None), # noqa
),
msg=d['msg'], t=d['time'])
def to_dict(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment