diff --git a/lib/nntp/tiny/session.py b/lib/nntp/tiny/session.py index a3f5327..db63b65 100644 --- a/lib/nntp/tiny/session.py +++ b/lib/nntp/tiny/session.py @@ -216,10 +216,10 @@ class Session(): sql += " and " msgrange.clause() - text = self._newsgroup_summary(newsgroup) - cr = self.db.execute(sql, (newsgroup.id)) + summary = self._newsgroup_summary(newsgroup) + cr = self.db.execute(sql, (newsgroup.id)) - self.respond(ResponseCode.NNTP_GROUP_LISTING, text) + self.respond(ResponseCode.NNTP_GROUP_LISTING, summary) for message in cr.each(): self.print(str(message.id))