Skip to content
Snippets Groups Projects
Verified Commit 118c2931 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix response dict access

parent 6f0e0b94
No related branches found
Tags 0.1a6
No related merge requests found
Pipeline #3948 failed
......@@ -147,9 +147,9 @@ class BigBlueButton:
except Exception as ex:
raise BigBlueButtonError("Failed to parse XML response from backend.") from ex
if xml.get("returncode", "FAILED").upper() == "FAILED":
message_key = xml.get("messageKey", "")
message = xml.get("message", "Unknown error")
if xml["response"].get("returncode", "FAILED").upper() == "FAILED":
message_key = xml["response"].get("messageKey", "")
message = xml["response"].get("message", "Unknown error")
ex = BigBlueButtonError(f"Backend returned FAILED response: {message}")
ex.message_key = message_key
......
[tool.poetry]
name = "bigbluebutton2"
version = "0.1a5"
version = "0.1a6"
description = "Sophisticated Python client library for BigBlueButton™ with Django integration"
authors = ["Dominik George <dominik.george@teckids.org>", "Tom Teichler <tom.teichler@teckids.org"]
license = "MIT"
......
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