def getpsk(self, guid): self.guid_is_valid(guid) with AsyncARTIC2db() as db: psk = db.get_session_psk(guid) return {"psk": psk}