Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-bigbluebutton2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
InfraBlue
python-bigbluebutton2
Merge requests
!39
Resolve "Handle return codes and messages"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Handle return codes and messages"
8-handle-return-codes-and-messages
into
master
Overview
0
Commits
2
Pipelines
2
Changes
1
Merged
Nik | Klampfradler
requested to merge
8-handle-return-codes-and-messages
into
master
4 years ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
Closes
#8 (closed)
Edited
4 years ago
by
Nik | Klampfradler
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
5c006b3a
2 commits,
4 years ago
1 file
+
12
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bigbluebutton/api/bigbluebutton.py
+
12
−
1
Options
@@ -142,7 +142,18 @@ class BigBlueButton:
if
res
.
status_code
!=
200
:
raise
BigBlueButtonError
(
f
"
Backend returned HTTP status
{
res
.
status_code
}
.
"
)
xml
=
xmltodict
.
parse
(
res
.
text
)
try
:
xml
=
xmltodict
.
parse
(
res
.
text
)
except
Exception
as
ex
:
raise
BigBlueButtonError
(
"
Failed to parse XML response from backend.
"
)
from
ex
if
xml
.
get
(
"
returncode
"
,
"
FAILED
"
).
upper
()
==
"
FAILED
"
:
message_key
=
res
.
get
(
"
messageKey
"
,
""
)
message
=
res
.
get
(
"
message
"
,
"
Unknown error
"
)
ex
=
BigBlueButtonError
(
f
"
Backend returned FAILED response:
{
message
}
"
)
ex
.
message_key
=
message_key
raise
ex
return
xml
[
"
response
"
]
Loading