Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
2969e2c1
Commit
2969e2c1
authored
4 years ago
by
juga
Browse files
Options
Downloads
Patches
Plain Diff
chg: resultdump: Add missing attrs to errors
parent
b1c0f0d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/lib/resultdump.py
+17
-3
17 additions, 3 deletions
sbws/lib/resultdump.py
with
17 additions
and
3 deletions
sbws/lib/resultdump.py
+
17
−
3
View file @
2969e2c1
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment