Skip to content
Snippets Groups Projects
Commit 2969e2c1 authored by juga's avatar juga
Browse files

chg: resultdump: Add missing attrs to errors

parent b1c0f0d0
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment