in bots/triage-slackbot/triage_slackbot/handlers.py [0:0]
def get_selected_category(self, body: t.Dict[str, t.Any]) -> t.Optional[RequestCategory]:
category = (
body["state"]
.get("values", {})
.get(BlockId.recategorize_select_category, {})
.get("recategorize_select_category_action", {})
.get("selected_option", {})
or {}
).get("value")
if not category:
return None
return self.config.categories[category]