doc: refresh

This commit is contained in:
mco-system
2023-04-22 18:53:55 +11:00
parent 5bd0596281
commit 4542ed1303
2 changed files with 5 additions and 22 deletions

View File

@@ -60,10 +60,10 @@ def get_slots():
def get_speaker_biography(name):
try:
speaker_info = backend.get(endpoint=f"events/{app.local_config['pretalx']['event']}/speakers/", params={"q": name}).json()
logging.info(speaker_info)
logger.debug(speaker_info)
return speaker_info["results"][0]["biography"].strip()
except Exception as err:
logging.debug(f"UnknownSpeakerError: {name}")
logger.warning(f"UnknownSpeakerError: {name}")
return None
# ------------------------------------------------------------------------------