diff --git a/bigbluebutton/api/bigbluebutton.py b/bigbluebutton/api/bigbluebutton.py index 0ea46ab15b4a6bd96cb35794873175a7c60fa103..8cc73e00fcd333b2c734ef6e007ab0c0568fa311 100644 --- a/bigbluebutton/api/bigbluebutton.py +++ b/bigbluebutton/api/bigbluebutton.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 3c79c37c593556da1182c7cf937b6f1855ca32dc..ca999f2ea041862b002b0cc9127818994c9939d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [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"