Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feedback-loop
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
ai3
tools
feedback-loop
Commits
a7cc0c2e
Commit
a7cc0c2e
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Another string -> bytes fix when parsing a FeedbackReport
parent
1f07fd8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
feedbackloop/arf.py
+2
-2
2 additions, 2 deletions
feedbackloop/arf.py
with
2 additions
and
2 deletions
feedbackloop/arf.py
+
2
−
2
View file @
a7cc0c2e
...
@@ -75,8 +75,8 @@ class ARFMessage(object):
...
@@ -75,8 +75,8 @@ class ARFMessage(object):
"""
Returns the message/feedback-report part as a FeedbackReport
"""
"""
Returns the message/feedback-report part as a FeedbackReport
"""
part
=
self
.
_get_part
(
'
feedback-report
'
)
part
=
self
.
_get_part
(
'
feedback-report
'
)
if
part
:
if
part
:
return
Parser
(
FeedbackReport
).
parse
str
(
return
Bytes
Parser
(
FeedbackReport
).
parse
bytes
(
part
.
get_payload
()[
0
].
as_
string
())
part
.
get_payload
()[
0
].
as_
bytes
())
def
get_original_message_headers
(
self
):
def
get_original_message_headers
(
self
):
"""
Returns headers from the orginal message
"""
"""
Returns headers from the orginal message
"""
...
...
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